Per-requirement --config-settings not working for editable_mode · Issue #12480 · pypa/pip (original) (raw)
Description
Context: I want to install a local package in editable mode in a way that is compatible with mypy.
If I install the package on its own via:
pip install -e /path/to/mypkg --config-settings editable_mode=strict
It works correctly.
However, if I add to my requirements.txt:
...
-e /path/to/mypkg --config-settings editable_mode=strict
...
and then pip install -r requirements.txt
, it does not pick up the editable_mode setting and installs in the default way which is incompatible with mypy.
The package I am trying to install uses setup.py (no pyproject.toml).
Expected behavior
As I understand it from #11325 it should work to specify the --config-settings in my requirements.txt so I don't understand why it isn't working.
pip version
23.3.2
Python version
3.11.6
OS
MacOS
How to Reproduce
see description
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.