You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use --only-binary together with --no-binary to force pip to use only binaries for all packages, except for one. It works fine when using both options on the command-line, but it does not work in the same way when using the environment variable version of the exact same options. This is needed in cibuildwheel, because environment variables are the only way to influence pip's behaviour (can't use the command-line directly).
Expected behavior
I would expect the behaviour to be identical when used in combination whether command line (--only-binary / --no-binary) or their environment variable equivalents (PIP_ONLY_BINARY / PIP_NO_BINARY) are used.
pip version
24.3.1
Python version
3.13
OS
Linux
How to Reproduce
unset all environment variables to make sure we are always setting them explicitly:
unset PIP_ONLY_BINARY
unset PIP_NO_BINARY
if docopt is installed, uninstall it:
pip uninstall docopt
purge cache:
pip cache purge
run:
pip install --only-binary=:all: docopt
should get the following (correct) output - the package should refuse to install because it is only distributed as .tar.gz:
ERROR: Could not find a version that satisfies the requirement docopt (from versions: none)
ERROR: No matching distribution found for docopt
run the environment variable equivalent:
PIP_ONLY_BINARY=:all: pip install docopt
this should also fail to install:
ERROR: Could not find a version that satisfies the requirement docopt (from versions: none)
ERROR: No matching distribution found for docopt
so far, so good, now add --no-binary to allow docopt as an exception to the general rule:
Description
I am trying to use
--only-binary
together with--no-binary
to forcepip
to use only binaries for all packages, except for one. It works fine when using both options on the command-line, but it does not work in the same way when using the environment variable version of the exact same options. This is needed incibuildwheel
, because environment variables are the only way to influence pip's behaviour (can't use the command-line directly).Expected behavior
I would expect the behaviour to be identical when used in combination whether command line (
--only-binary
/--no-binary
) or their environment variable equivalents (PIP_ONLY_BINARY
/PIP_NO_BINARY
) are used.pip version
24.3.1
Python version
3.13
OS
Linux
How to Reproduce
docopt
is installed, uninstall it:.tar.gz
:--no-binary
to allowdocopt
as an exception to the general rule:docopt
:Output
output is shown inline, above.
Code of Conduct
The text was updated successfully, but these errors were encountered: