versioneer.get_cmdclass doesn't take any argument
See original GitHub issueIn installation.md it is said that we can override cmdclass this way:
cmdclass=versioneer.get_cmdclass(numpy_cmdclass)
.
On 0.18 get_cmdclass defined on the generated versioneer.py is for some reason defined without optional argument.
def get_cmdclass():
"""Get the custom setuptools/distutils subclasses used by Versioneer."""
if "versioneer" in sys.modules:
del sys.modules["versioneer"]
# this fixes the "python setup.py develop" case (also 'install' and
# 'easy_install .'), in which subdependencies of the main project are
# built (using setup.py bdist_egg) in the same python process. Assume
# a main project A and a dependency B, which use different versions
# of Versioneer. A's setup.py imports A's Versioneer, leaving it in
# sys.modules by the time B's setup.py is executed, causing B to run
# with the wrong versioneer. Setuptools wraps the sub-dep builds in a
# sandbox that restores sys.modules to it's pre-build state, so the
# parent is protected against the child's "import versioneer". By
# removing ourselves from sys.modules here, before the child build
# happens, we protect the child from the parent's versioneer too.
# Also see https://github.com/warner/python-versioneer/issues/52
cmds = {}
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
versioneer.get_cmdclass doesn't take any argument #161
In installation.md it is said that we can override cmdclass this way: cmdclass=versioneer.get_cmdclass(numpy_cmdclass).
Read more >versioneer.py · main · pyMOR / pymor · GitLab
In the future, make-versioneer.py will take a VCS name as an argument, and will construct a version of `versioneer.py` that is specific to...
Read more >versioneer.py - Google Git
run `versioneer install` in your source tree, commit the results ... will take a VCS name as an argument, and will construct a...
Read more >Version String Management in Python - The Mozilla Blog
What's a good way to manage version numbers in a Python project? I don't mean: where should it be stored, so that other...
Read more >versioneer.py · master · mpm-at-recover / pycbg · GitLab
https://github.com/python-versioneer/python-versioneer ... will take a VCS name as an argument, and will construct a version of.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
still facing this issue - " AttributeError: module ‘versioneer’ has no attribute ‘get_cmdclass’ " even after using the 0.19 version
0.19 is released.