With:
and build-requirements.txt containing:
. --install-option='--install-purelib=/usr/lib/python3/dist-packages'
the following command fails to install the package from source (pygments in this instance):
python3 -m pip install . --root="../package-build" --prefix=/usr -r build-requirements.txt
ERROR: Location-changing options found in --install-option: ['--install-purelib'] from file:///git-pygments (from -r build-requirements.txt (line 1)). This is unsupported, use pip-level options like --user, --prefix, --root, and --target instead.
Using --install-option on the CLI level (instead of inside a requirements file) has a similar fate.
However, the official docs state that the usage of --install-option is supported:
Am I missing something or is this an issue with pip?
Use --config-settings instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With