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 <rep...@bugs.python.org> <http://bugs.python.org/issue21657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com