[Python-modules-team] distinguish between PyPI and Debian python packages

Szépe Viktor viktor at szepe.net
Mon Sep 1 21:00:56 UTC 2014


Good morning!

Could you help me to get `pip freeze` and `pip list` to display only  
packages installed by pip and to exclude packages coming from a Debian  
package?

The only way I've found is

import pip
for dist in pip.get_installed_distributions():
     if dist.location.startswith('/usr/local/lib/python'):
         print dist.project_name

Could you patch upstream with this option?

https://github.com/nvie/pip-tools/issues/109#issuecomment-54085116
https://github.com/nvie/pip-tools/issues/96


Thank you!


Szépe Viktor
-- 
+36-20-4242498  sms at szepe.net  skype: szepe.viktor
Budapest, XX. kerület







More information about the Python-modules-team mailing list