blob: 98f719d5cfbee0dda2fee02b0c1fbe3218b029b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env python
'''
Fix setuptools (in virtualenv) after upgrading to distribute >= 0.7.
'''
from distutils.sysconfig import get_python_lib
import glob
import os
import shutil
for f in glob.glob(os.path.join(get_python_lib(), 'setuptools-0.6*.egg*')):
print 'removing', f
if os.path.isdir(f):
shutil.rmtree(f)
else:
os.remove(f)
|