Skip to content

Per-requirement --config-settings not working for editable_mode #12480

@ryanc-bs

Description

@ryanc-bs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: build logicStuff related to metadata generation / wheel generationC: editableEditable installationstype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions