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 support for easy_install-based downloads for fetch_build_eggs #2537

Merged
merged 3 commits into from Jan 23, 2021

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Jan 17, 2021

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

def fetch_build_egg(dist, req): # noqa: C901 # is too complex (16) # FIXME
"""Fetch an egg needed for building.

Use pip/wheel to fetch/build a wheel."""
# Check pip is available.
try:
pkg_resources.get_distribution('pip')
Copy link
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
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
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.

None yet

2 participants