mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
AC-505 Add vendored copies of ec2 and rax inventory scripts from Ansible (for now). Add vendored versions of boto and pyrax and all their dependencies, updated all vendored packages to latest versions.
This commit is contained in:
16
fix_virtualenv_setuptools.py
Executable file
16
fix_virtualenv_setuptools.py
Executable file
@@ -0,0 +1,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)
|
||||
Reference in New Issue
Block a user