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

Szépe Viktor viktor at szepe.net
Fri Sep 5 09:54:40 UTC 2014


Could you help me in this?
Or share your opinion.



Idézem/Quoting Szépe Viktor <viktor at szepe.net>:

> 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
>
>
>
>
>
> _______________________________________________
> Python-modules-team mailing list
> Python-modules-team at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team


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