We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff234cf commit 70a2d12Copy full SHA for 70a2d12
setup.py
@@ -138,11 +138,16 @@ def run(self):
138
define_macros=[('GPUARRAY_SHARED', None)]
139
)]
140
141
-cmds=versioneer.get_cmdclass()
+cmds = versioneer.get_cmdclass()
142
cmds["clean"] = cmd_clean
143
144
+version_data = versioneer.get_versions()
145
+
146
+if version_data['error'] is not None:
147
+ raise ValueError("Can't determine version for build: %s\n Please make sure that your git checkout includes tags." % (version_data['error'],))
148
149
setup(name='pygpu',
- version=versioneer.get_version(),
150
+ version=version_data['version'],
151
cmdclass=cmds,
152
description='numpy-like wrapper on libgpuarray for GPU computations',
153
packages=['pygpu', 'pygpu/tests'],
0 commit comments