eggsetup.py
20 lines
| 524 B
| text/x-python
|
PythonLexer
vivainio
|
r138 | #!/usr/bin/env python | ||
vivainio
|
r173 | """Wrapper to build IPython as an egg (setuptools format).""" | ||
vivainio
|
r138 | |||
vivainio
|
r173 | import os | ||
import sys | ||||
vivainio
|
r138 | |||
vivainio
|
r173 | # 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])) | ||||
vivainio
|
r138 | |||
vivainio
|
r173 | # now, import setuptools and call the actual setup | ||
import setuptools | ||||
print sys.argv | ||||
#sys.argv=['','bdist_egg'] | ||||
execfile('setup.py') | ||||
vivainio
|
r139 | |||
vivainio
|
r173 | # clean up the junk left around by setuptools | ||
vivainio
|
r211 | if "develop" not in sys.argv: | ||
os.system('rm -rf ipython.egg-info build') | ||||