nanonyme / which

Automatically exported from code.google.com/p/which
MIT License
0 stars 0 forks source link

pip uninstall deletes /usr/bin or system python/bin dirs!! #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install 'which' - sudo pip install which
2. Uninstall which - sudo pip install which

What is the expected output? What do you see instead?

On a Mac:

Uninstalling which:
  /Library/Frameworks/Python.framework/Versions/2.7/bin
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/which-1.1.0-py2.7.egg-info
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/which.py
  /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/which.pyc
Proceed (y/n)? 

On linux:

Uninstalling which:
  /usr/bin
  /usr/local/lib/python2.7/dist-packages/which-1.1.0-py2.7.egg-info
  /usr/local/lib/python2.7/dist-packages/which.py
  /usr/local/lib/python2.7/dist-packages/which.pyc
Proceed (y/n)? 

What version of the product are you using? On what operating system?

Mac Snow Leopard/Ubuntu 12.04 LTS

Please provide any additional information below.

The issue is caused by the use of the following in setup.py:

 data_files=[ (_getBinDir(), binFiles) ],

This is meant to be used to copy *data* files to a target dir, an uninstall 
will remove the target dir.

Original issue reported on code.google.com by rleftw...@lightkeeper.com on 1 Jan 2013 at 11:33

GoogleCodeExporter commented 9 years ago
Copy and paste bug...

Step 2 should be:

2. Uninstall which - sudo pip uninstall which

Original comment by rleftw...@lightkeeper.com on 1 Jan 2013 at 11:34