[issue21657] pip.get_installed_distributions() Does not

Adam Matan report at bugs.python.org
Wed Jun 4 09:43:55 CEST 2014


New submission from Adam Matan:

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

----------
components: Distutils, Library (Lib)
messages: 219751
nosy: Adam.Matan, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: pip.get_installed_distributions() Does not
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21657>
_______________________________________


More information about the Python-bugs-list mailing list