Skip to content
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

Merged
merged 3 commits into from
Jan 24, 2021
Merged

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Jan 21, 2021

Summary of changes

Ref #917

Pull Request Checklist

@jaraco jaraco force-pushed the feature/remove-easy-install branch from a9ecd7e to 4b0408a Compare January 24, 2021 00:11
@jaraco jaraco merged commit 4a4ef0b into main Jan 24, 2021
@jaraco jaraco deleted the feature/remove-easy-install branch January 24, 2021 00:49
@jezdez
Copy link
Member

jezdez commented Jan 26, 2021

Woah, woah, just want to acknowledge how amazing this change is. Thank you @jaraco!

commodo added a commit to commodo/packages that referenced this pull request May 11, 2021
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]>
commodo added a commit to commodo/packages that referenced this pull request May 11, 2021
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]>
BKPepe pushed a commit to openwrt/packages that referenced this pull request May 17, 2021
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)
@emailweixu
Copy link

emailweixu commented Sep 9, 2021

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'])"

@jaraco
Copy link
Member Author

jaraco commented Sep 10, 2021

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).

@emailweixu
Copy link

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.

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.

@learnereveryday
Copy link

@emailweixu Thank you so much! This hacky workaround is exactly what I have been looking for.

@jaraco
Copy link
Member Author

jaraco commented Dec 3, 2021

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:

  • find a way to convert those eggs to wheels
  • use older versions of setuptools to install the egg
  • build wheels from source and install those (recommended)

@learnereveryday
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants