-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip install --global-option=... git+https... does not take options into account #6379
Comments
It would help if you could include pip's log output when running the command that causes the problem -- preferably with verbose logging. |
You can find the log here. Command issued is: pip -v -v -v --log sisl.log install --global-option="build" --global-option="--fcompiler=nag" git+https://github.com/zerothi/sisl.git which should fail! |
How about the log file for the success case (installing from the directory) for comparison? |
Okay, I see what's happening now. When pip/src/pip/_internal/cli/cmdoptions.py Lines 72 to 79 in 78744e8
However, when it gets to the point where pip decides whether to build a wheel or fall back to using pip/src/pip/_internal/wheel.py Lines 766 to 776 in 78744e8
And when building a wheel, the global options aren't used, so the build succeeds, and it never gets to trying the options with |
Also, I believe the "Disabling all use of wheels" warning isn't making it to the log file because it's only being output to the console via stderr. So it's better to paste the console output into the issue rather than the log file contents. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
19.0.3
3.7.3
Debian (latest)
Description
When issuing:
I would expect the installation to take into account the build options such that the install command would look like (example):
python setup.py build --fcompiler=nag install
.Remarkably this does not occur when installing from the cloned directory:
then everything works as expected.
Expected behavior
I would expect a
git+https
install to work exactly like the local directory installation.How to Reproduce
Since it is easy to check whether it works simply pass a compiler you don't have access to on your machine (I don't have the
nag
compiler). Then the build should stop immediately with an errornumpy.distutils.fcompiler.CompilerNotFound
.--fcompiler
:This will effectively execute:
which is not intended... :(
Output
In the first one you should find a
numpy.distutils.fcompiler.CompilerNotFound
error, the second one should not execute any error.The text was updated successfully, but these errors were encountered: