-
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
pip freeze
includes the current directory, if there is an egg-info.
#2926
Comments
The egg-info part is #2926 |
I believe that this can be solved by just skipping |
Can this be fixed by adding a custom skip list in addition to the standard There may be several internal development packages that are installed in a single virtual environment. |
Hi, I am from PyPA Sprint Weekend at Bloomberg (2018), and I will work on this! |
Add PR: #5951 |
How can we reproduce this, by the way? |
@pradyunsg Please move to in progress |
@pradyunsg I cannot seem to reproduce. The steps I did: Please advice |
@pradyunsg, is this issue resolved. I see a PR closed regarding this #5951. Does the change in this PR is what intended to be done? |
It’s not fixed; the PR was closed because it was abandoned in a non-mergeable state. Feel free to re-apply the changes and submit a new PR against master. |
Great! I'd like to work on it. :) |
Cross-referencing #7731; this might be the reason why some had trouble reproducing the issue. |
@uranusjr Thanks for the pointer. I was able to reproduce the same behaviour with |
Is it about providing the same behaviour for Also, I tried to test my change first by installing an updated version of pip by running the command So, when I do |
That’s (what I consider) correct, but we’d need to first found out what causes this different behaviour before we decide on the solution. For the experiement, the difference is due to Setuptools (or distutils?) uses a different logic to load the module in the the entry point script (see |
I run |
You can replace that with |
Thank you! That really helped. |
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
This skips any *.egg_info present in the current directory when performing pip freeze. This fixes pypa#2926
At least when the current directory is a git repository. In addition, it treats as something wanting
-e
and also gives it the wrong#egg
(it appears to give it<package-name>-<git-branch>
as the#egg
).The text was updated successfully, but these errors were encountered: