Skip to content

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.

@jaraco jaraco requested a review from benoit-pierre January 17, 2021 16:55
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

3 participants