-
-
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
Remove easy_install script and module. #2544
Conversation
a9ecd7e
to
4b0408a
Compare
Woah, woah, just want to acknowledge how amazing this change is. Thank you @jaraco! |
Refreshed Python patches. Updated pip & setuptools version. For pip, patch '001-pep517-pyc-fix.patch' was reworked. Also, the current version of the bundled pip (21.1.1) no longer supports Python2, so the 'py2.py3' suffix gets replaced with just py3. For setuptools, there is no longer a script/module: pypa/setuptools#2544 Signed-off-by: Alexandru Ardelean <[email protected]>
Refreshed Python patches. Updated pip & setuptools version. For pip, patch '001-pep517-pyc-fix.patch' was reworked. Also, the current version of the bundled pip (21.1.1) no longer supports Python2, so the 'py2.py3' suffix gets replaced with just py3. For setuptools, there is no longer a script/module: pypa/setuptools#2544 Signed-off-by: Alexandru Ardelean <[email protected]>
Refreshed Python patches. Updated pip & setuptools version. For pip, patch '001-pep517-pyc-fix.patch' was reworked. Also, the current version of the bundled pip (21.1.1) no longer supports Python2, so the 'py2.py3' suffix gets replaced with just py3. For setuptools, there is no longer a script/module: pypa/setuptools#2544 Signed-off-by: Alexandru Ardelean <[email protected]> (cherry picked from commit e312275)
I am not sure if this is the right location to ask: I used to use easy_install to install eggs. How should I install 3rd-party eggs after easy_install script is removed. And I didn't find "pip install --egg" working. Edit: I found that I could hack using the following command, which is essentially what the removed easy_install.main() does. But I feel there should be a better way python -c "from setuptools import setup; setup(script_args=['-q', 'easy_install', '-v', 'some.egg'])" |
Your best bet is to stop installing eggs. There are lots of things that are bound to break going forward. Instead, build wheels and install them. If all you have are legacy eggs, consider building a tool to convert those to wheels. No one is going to stop you from invoking easy_install as a setuptools command, but we won't be supporting that functionality and it could go away at any time (and will go away once setup_requires can be dropped). |
Thanks for the reply. I tried using command "wheel convert" to convert the egg to wheel. But "pip install" failed to install the wheel and reported that the wheel "is not a supported wheel on this platform". However, the egg can be successfully installed using the hacky method. |
@emailweixu Thank you so much! This hacky workaround is exactly what I have been looking for. |
If you need egg to wheel conversion, I'd bring that up with the wheel project and be prepared to have to provide your own fix. In #2908, I've drafted the removal of easy_install, which will break the hacky workaround. Once that's released, your recourse will be to:
|
@jaraco Got it. Thanks for the info on what to expect. Yes, I think egg to wheel conversion utility tool will be quite helpful, as it is sometimes difficult for the third party enterprise packages in keeping up with the curve. |
Summary of changes
Ref #917
Pull Request Checklist
changelog.d/
.(See documentation for details)