question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

versioneer.get_cmdclass doesn't take any argument

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jeeva-srinivasancommented, Nov 20, 2020

still facing this issue - " AttributeError: module ‘versioneer’ has no attribute ‘get_cmdclass’ " even after using the 0.19 version

2reactions
effigiescommented, Nov 10, 2020

0.19 is released.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found