Re: distinguish between PyPI and Debian python packages

2014-09-05 Thread Szépe Viktor
Thank you! I am not a python developer but a sysadmin. I would use pip in a monthly report on a VPS. https://github.com/szepeviktor/debian-server-tools/blob/master/monitoring/package-versions.sh#L86 So it is about system-wide python packages from - pip - and Debian packages. Idézem/Quoting Da

Re: distinguish between PyPI and Debian python packages

2014-09-05 Thread Daniele Tricoli
On Friday 05 September 2014 12:47:28 you wrote: > $ mkvirtualenv --system-site-packages Ehm... $ mkvirtualenv --system-site-packages testlocal Cheers, -- Daniele Tricoli 'Eriol' http://mornie.org -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscr

Re: distinguish between PyPI and Debian python packages

2014-09-05 Thread Daniele Tricoli
On Friday 05 September 2014 12:32:12 Szépe Viktor wrote: > 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? Have you already tried using --local option? $ mkvirtualenv --system-site-package

distinguish between PyPI and Debian python packages

2014-09-05 Thread Szépe Viktor
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/loc