[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

distinguish between PyPI and Debian python packages




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@szepe.net  skype: szepe.viktor
Budapest, XX. kerület





Reply to: