Created
December 22, 2016 04:43
-
-
Save jace/25935fa2e748928e98b3394e9bb8730d to your computer and use it in GitHub Desktop.
Revisions
-
jace created this gist
Dec 22, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ #!/bin/bash if [ $# -ne 1 ]; then echo "Usage: $0 <venv_dir>" else rm $1/bin/pip rm $1/bin/pip2 rm $1/bin/pip2.7 rm $1/bin/python rm $1/bin/python2 rm $1/bin/python2.7 rm -r $1/include/python2.7 rm $1/lib/python2.7/* rm -r $1/lib/python2.7/distutils rm $1/lib/python2.7/site-packages/easy_install.* rm -r $1/lib/python2.7/site-packages/pip rm -r $1/lib/python2.7/site-packages/pip-*.dist-info rm -r $1/lib/python2.7/site-packages/setuptools rm -r $1/lib/python2.7/site-packages/setuptools-*.dist-info rm $1/.Python virtualenv $1 fi