-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
python -m pip install
skip sdist installation
#4621
Comments
This is because when running pip with |
@benoit-pierre I tried to remove current working directory from So you are absolutely right, when I removed Any idea what we can do to align behavior between |
I'm not sure why this is happening... Is the output of |
@pradyunsg nope, they are the same:
I think it's somehow related to detecting |
This must be done before
|
The current discussion on this issue is in #6558. I will close this in favor of that, since it looks like the same case. |
Description:
If I try to install an
sdist
viapython -m pip install dist/foo-1.2.0.tar.gz
, it saysRequirement already satisfied
and skip installation. Full output:If I try to install it via regular
pip install dist/foo-1.2.0.tar.gz
, everything's alright. Full output:The expected result would be to have the same behavior for
pip
andpython -m pip
executions.A little bit of debug
By some reasons, if we call
pip install
thepkg_resources.get_distribution
on line req_install.py:894 returns nothing, hence the package is needed to be installed. On the other hand, if we callpython -m pip install
, the very same line returns a valid distribution hence the package won't be installed.Unfortunately, I wasn't able to debug any further.. :(
The text was updated successfully, but these errors were encountered: