-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install -e fails on version 50: command class <class 'setuptools.command.egg_info.egg_info'> must subclass Command #2355
Comments
Minimal reproducing example setup.py
So seems related to #2365, though the symptoms are different |
Since v50 we also get this error when installing open source package
It also has an Also, please note that official Python docs recommend to update Would it be possible to roll back, but release a new version such that all the @ferraith FYI |
This can be worked around with the SETUPTOOLS_USE_DISTUTILS env var. I had this problem with Reproducer:
Workaround
|
@asmacdo I can confirm that the workaround you describe with |
Note there are seemingly two errors reported here. One relating to |
Hi @jay-karimi . Sorry for the trouble you experienced and thanks for filing a report. @asmacdo Thanks for the reproducer. That helps a lot. I'm able to replicate the failure with this command:
|
Same when executing against the source repo:
|
I traced the issue to its source:
Notice By importing pip, the project is triggering the same behavior reported in #2351. In this case, however, before the Replacing the use of
My recommendation is for that project (and any other projects using that technique) avoid importing pip. |
@jaraco should we open a pip ticket to discuss a warning if pip is imported in setup.py (is that even possible)? |
I apply the same fix for Windowns build and it worked too. Here is Window statement:
|
* 🔥 split up the non-essential utilities to moban extensions where they could grow bigger * 📰 add moban update action * 📰 update moban update command * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst * 🐛 generate the template from the same environment so that custom jinja2 thingies are visible. fix #396 * 🔥 remove github tests * 🐛 apply temporary workaround for pypa/setuptools#2355 * 🔥 remove unused imports Co-authored-by: chfw <chfw@users.noreply.github.com>
Thanks for the analysis and suggested fix. |
It is likely possible. Given that for the distutils hack, setuptools special-cases pip, it may make sense to be even more sophisticated there and not disable the override unless pip is being executed. |
* allow C extension install for Python 3.8 * Added tag 0.16.8 for changeset 0228e1a734b5 * remove duplicates from CHANGES * Added tag 0.16.9 for changeset 17f2c2782abb * update url in meta and .svg in README * Added tag 0.16.10 for changeset 42b89940bc91 * udpate setup.py to workaround issue in setuptools pypa/setuptools#2355 (comment) * Added tag 0.16.11 for changeset 43b028851940 * update links in doc * Added tag 0.16.12 for changeset 53ec5198e50a * try to re-enable rtfd * try to re-enable rtfd * try to re-enable rtfd * fix issue 359 * corrections on update() * explain round-tripping * fix #371 * fix #365 * fix #373 * last release supporting 2.7 * Added tag 0.16.13 for changeset ce172fcf4b61 * remove python 2 specific code add future deprecation warning to old style functions * remove superfluous comment assignment * add scan, parser. compose, emit, serialize to YAML * remove support for 2.7, prepare for f-strings * Added tag 0.17.0 for changeset 7c1c4a4e17cf * add Python 3 only classifier * Added tag 0.17.1 for changeset 961613d5ea1a * change py2.py3 wheel to py3 only wheel * Added tag 0.17.2 for changeset a8a9141e7a90 * fix for issue 382, error in format string * Added tag 0.17.3 for changeset f115bb2a18a0 * partial fix for 351 * Added tag 0.17.4 for changeset eb1a5e34fc54 * Code and tests fixed. Hopefully. * remove old compat code * Appease the linters Co-authored-by: Anthon van der Neut <anthon@mnt.org>
The text was updated successfully, but these errors were encountered: