setup_bdist_egg.py
19 lines
| 468 B
| text/x-python
|
PythonLexer
fperez
|
r92 | #!/usr/bin/env python | ||
fperez
|
r93 | """Wrapper to build IPython as an egg (setuptools format).""" | ||
fperez
|
r92 | |||
fperez
|
r93 | import os | ||
fperez
|
r92 | import sys | ||
fperez
|
r93 | # Add my local path to sys.path | ||
home = os.environ['HOME'] | ||||
sys.path.insert(0,'%s/usr/local/lib/python%s/site-packages' % | ||||
(home,sys.version[:3])) | ||||
# now, import setuptools and build the actual egg | ||||
fperez
|
r92 | import setuptools | ||
sys.argv=['','bdist_egg'] | ||||
execfile('setup.py') | ||||
fperez
|
r93 | |||
# clean up the junk left around by setuptools | ||||
os.system('rm -rf ipython.egg-info') | ||||