[Python-modules-team] Bug#751827: Bug#751827: python-virtualenv: version of pip in virtualenvs fails to uninstall some packages

Stefano Rivera stefanor at debian.org
Fri Nov 21 22:43:58 UTC 2014


Hi Jack (2014.11.18_11:53:09_+0200)
> 1.5.6-3 doesn't seem to be working over here even on a fresh virtualenv

Works for me:

$ cat test.sh
#!/bin/sh
virtualenv ve
. ve/bin/activate
pip install pillow
pip uninstall pillow

$ ./test.sh
Running virtualenv with interpreter /usr/bin/python2
New python executable in ve/bin/python2
Not overwriting existing python script ve/bin/python (you must use ve/bin/python2)
Installing setuptools, pip...done.
Downloading/unpacking pillow
  Downloading Pillow-2.6.1.tar.gz (7.3MB): 7.3MB downloaded
  Running setup.py (path:/tmp/ve/build/pillow/setup.py) egg_info for package pillow
...
Successfully installed pillow
Cleaning up...
Uninstalling Pillow:
  /tmp/ve/bin/pilconvert.py
  /tmp/ve/bin/pildriver.py
  /tmp/ve/bin/pilfile.py
  /tmp/ve/bin/pilfont.py
  /tmp/ve/bin/pilprint.py
  /tmp/ve/lib/python2.7/site-packages/PIL/BdfFontFile.py
  /tmp/ve/lib/python2.7/site-packages/PIL/BdfFontFile.pyc
...
  /tmp/ve/lib/python2.7/site-packages/PIL/_util.py
  /tmp/ve/lib/python2.7/site-packages/PIL/_util.pyc
  /tmp/ve/lib/python2.7/site-packages/Pillow-2.6.1-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled Pillow

$ dpkg -l python-virtualenv python-pip python-pip-whl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                              Version               Architecture          Description
+++-=================================-=====================-=====================-=======================================================================
ii  python-pip                        1.5.6-3               all                   alternative Python package installer
ii  python-pip-whl                    1.5.6-3               all                   alternative Python package installer
ii  python-virtualenv                 1.11.6+ds-1           all                   Python virtual environment creator

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



More information about the Python-modules-team mailing list