Skip to content

Remove support for easy_install-based downloads for fetch_build_eggs#2537

Merged
jaraco merged 3 commits into
mainfrom
feature/drop-fetch-build-eggs-easy-install-fallback
Jan 23, 2021
Merged

Remove support for easy_install-based downloads for fetch_build_eggs#2537
jaraco merged 3 commits into
mainfrom
feature/drop-fetch-build-eggs-easy-install-fallback

Conversation

@jaraco

@jaraco jaraco commented Jan 17, 2021

Copy link
Copy Markdown
Member

This feature has been deprecated since the introduction of pip-based fetch_build_eggs.

@jaraco jaraco requested a review from benoit-pierre January 17, 2021 16:55
Comment thread setuptools/installer.py
Use pip/wheel to fetch/build a wheel."""
# Check pip is available.
try:
pkg_resources.get_distribution('pip')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't keeping an explicit check with pkg_resources.get_distribution('pip') make for a more user-friendly error message if pip is indeed missing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, although I found in my experience that the error is "no module named pip", which seems fairly clear. More importantly, as I'd like to at some point remove the dependency on pkg_resources, I'm inclined to omit this usage here. Another advantage of this approach is that it would allow usage when 'pip' is present but its metadata is missing (for whatever reason).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@jaraco jaraco merged commit aaf0661 into main Jan 23, 2021
@jaraco jaraco deleted the feature/drop-fetch-build-eggs-easy-install-fallback branch January 23, 2021 23:56
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.

2 participants