Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amirh opened this issue Mar 12, 2021 · 1 comment
Labels
Can Close? Will close in 30 days if there is no new activity

Comments

@amirh
Copy link

amirh commented Mar 12, 2021

🐞 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).

@groodt
Copy link
Collaborator

groodt commented Jul 3, 2022

@amirh Is this now fixed from your perspective since #433 was merged? I'm not sure that bazel can truly support "editable installs" since they would not be hermetic , but at least they should install successfully the first time without error.

@groodt groodt added the Can Close? Will close in 30 days if there is no new activity label Jul 3, 2022
@groodt groodt closed this as completed Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Can Close? Will close in 30 days if there is no new activity
Projects
None yet
Development

No branches or pull requests

3 participants