Skip to content

[pip_install] ERROR: File "setup.py" not found. Directory cannot be installed in editable mode #434

@amirh

Description

@amirh

🐞 bug report

Affected Rule

The issue is caused by the rule: pip_install

Is this a regression?

No

Description

when using pip_install for a requirements file that has a -e file, pip fails with:
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode.

This happens because pip (executed from here) looks for the setup.py file in the CWD which does not have a setup.py .

Anything else relevant?
#433 fixes this issue as it executes pip from the directory that contains setup.py (confirmed locally that it solved the problem for me).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Can Close?Will close in 30 days if there is no new activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions