-
Notifications
You must be signed in to change notification settings - Fork 3.1k
pip install --download throws error when used with setup.py file #831
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
Comments
It seems, based on a comment in req.py that pip expects a download-only package on the local fs to be editable, and indeed this seems to work, at least somewhat:
I ran into this when trying to script automated virtualenv creation using the fast local installs recipe. I'm not really sure what I'm going to do about it--I'd rather not have to guess pip arguments based on whether something looks like a path or a package. |
-e works only on the first level. If I have a local package, that has another local package as dependency, I get the same error, just a little later in the process. |
Just as a note, the issue here appears to be that while I'm not entirely sure what behavior would be expected though, because there is no artifact to download from an unpacked directory. Possibly this should just be an error or a warning that it can't download a directory. |
Hi @pradyunsg , @dstufft Since If yes, what would be the updated instructions to reproduce this and try to add the appropriate error/warning? |
Pinging @pradyunsg and @dstufft for getting their thoughts on how to tackle this 😊 |
On a project with dependencies, try |
To that affect, I created a project with just a setup.py defined at #831 (comment) and that ran
|
So here's the case, If i do
pip install /path/to/mypackage
it works like expected extract proper requirements and install everything that is defined in mypackage setup.py file.
When i do
It throws an exception:
The text was updated successfully, but these errors were encountered: