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

2014-11-24 Thread Jack L.
Oh I think I figured out what happened. I didn't install the new -whl which
is whats used in the virtualenv.

On Fri Nov 21 2014 at 5:44:00 PM Stefano Rivera stefa...@debian.org wrote:

 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-pip1.5.6-3   all
alternative Python package installer
 ii  python-pip-whl1.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



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

2014-11-21 Thread Stefano Rivera
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-pip1.5.6-3   all 
  alternative Python package installer
ii  python-pip-whl1.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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org