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.get_installed_distributions() Does not return packages in the current working directory #65856

Closed
AdamMatan mannequin opened this issue Jun 4, 2014 · 4 comments
Closed
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@AdamMatan
Copy link
Mannequin

AdamMatan mannequin commented Jun 4, 2014

BPO 21657
Nosy @rbtcollins, @merwok, @zware, @dstufft

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2015-07-31.04:23:28.700>
created_at = <Date 2014-06-04.07:43:55.181>
labels = ['type-bug', 'library']
title = 'pip.get_installed_distributions() Does not return packages in the current working directory'
updated_at = <Date 2015-09-10.15:07:32.913>
user = 'https://bugs.python.org/AdamMatan'

bugs.python.org fields:

activity = <Date 2015-09-10.15:07:32.913>
actor = 'davidfraser'
assignee = 'none'
closed = True
closed_date = <Date 2015-07-31.04:23:28.700>
closer = 'rbcollins'
components = ['Distutils', 'Library (Lib)']
creation = <Date 2014-06-04.07:43:55.181>
creator = 'Adam.Matan'
dependencies = []
files = []
hgrepos = []
issue_num = 21657
keywords = []
message_count = 4.0
messages = ['219751', '247730', '247734', '250384']
nosy_count = 6.0
nosy_names = ['davidfraser', 'rbcollins', 'eric.araujo', 'Adam.Matan', 'zach.ware', 'dstufft']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue21657'
versions = ['Python 2.7']

@AdamMatan
Copy link
Mannequin Author

AdamMatan mannequin commented Jun 4, 2014

Abstract:
Calling pip.get_installed_distributions() from a directory with a setup.py file returns a list which does not include the package(s) listed in the setup.py file.

Steps to reproduce:

  1. Create a virtual environment and activate it.
  2. Download any python git project with a setup.py file to a directory (e.g. git clone https://github.com/behave/behave.git /tmp/behave)
  3. Install the project using python setup.py install.
  4. Call pip.get_installed_distributions() from the directory which contains the setup.py file.
  5. Call pip.get_installed_distributions() from outside the directory which contains the setup.py file.
  6. The results from 4 and 5 differs.

See also:

http://stackoverflow.com/questions/739993/how-can-i-get-a-list-of-locally-installed-python-modules/23885252?noredirect=1#comment37045322_23885252

@AdamMatan AdamMatan mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jun 4, 2014
@AdamMatan AdamMatan mannequin changed the title pip.get_installed_distributions() Does not pip.get_installed_distributions() Does not return packages in the current working directory Jun 4, 2014
@zware
Copy link
Member

zware commented Jul 31, 2015

I sincerely apologize for it taking more than a year for somebody to say this, but I think this is in the wrong bug tracker and should be reported to the pip project at https://github.com/pypa/pip/issues

Donald, could you confirm?

@rbtcollins
Copy link
Member

Yes, Python vendors pip, but is not maintaining it - it should be filed in https://github.com/pypa/pip/issues.

@davidfraser
Copy link
Mannequin

davidfraser mannequin commented Sep 10, 2015

Filed with pypa at pypa/pip#3091

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants