Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd5cd61

Browse files
committed
BLD: setup.py magic to get versioneer to work
closes #5113 maybe #5077
1 parent 2706edb commit cd5cd61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ def run_tests(self):
233233
argv=['nosetests'] + self.test_args,
234234
exit=True)
235235

236+
cmdclass = versioneer.get_cmdclass()
237+
cmdclass['test'] = NoseTestCommand
236238

237239
# One doesn't normally see `if __name__ == '__main__'` blocks in a setup.py,
238240
# however, this is needed on Windows to avoid creating infinite subprocesses
@@ -375,6 +377,6 @@ def run_tests(self):
375377
# Telling setuptools this prevents it from doing an automatic
376378
# check for zip safety.
377379
zip_safe=False,
378-
cmdclass={'test': NoseTestCommand},
380+
cmdclass=cmdclass,
379381
**extra_args
380382
)

0 commit comments

Comments
 (0)