-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Freezing local tarball packages suggests requirement change that doesn't work #192
Comments
This still happens, at least to me with pip 1.1 on python 2.7 |
The original bug report is a bit difficult to decipher, but the underlying issue here is that when freezing with a requirements file that references a file path, the output suggests syntax that does not actually work. The suggested syntax should be valid syntax. |
@dstufft What's the right way to refer to a local file (say |
This is still present in the latest pip. Cleaner example and output: t.sh
Output
Not sure what the best course of action here is. Suggesting direct reference syntax would be best, but it doesn't work for relative paths. Maybe we consider this blocked on #6658? |
This relates to #609 (pip freeze). Relative path direct references are also discussed in this thread, via #6658. The direction this takes is currently as follow:
|
I executed the script defined in #192 (comment) with the latest master and with What should be the approach for solving this issue? |
Hello! Does this issue persist? If not, can we close this issue? |
Ran the test script from #192 (comment) and still can repro:
|
The suggestion should be changed to use the PEP 508 form. |
When I put a local source tarball in a requirements file and freeze the resulting environment, pip says that it doesn't know what it would install and suggests the "#egg=PackageName" syntax:
However, that syntax doesn't actually work for local files. The command below is the same as the previous command, but with "#egg=sf.phpsession" added to the requirement:
I'm not sure whether this should be considered a bug in the suggestion message or a bug in the requirement parsing code (or, equally possible, a bug in my understanding of what I'm making pip do. :). It seems like I should be able to add "#egg=" to a local package install, so I'm leaning toward "a bug in the requirement parsing code."
The text was updated successfully, but these errors were encountered: