mkrel.py
39 lines
| 756 B
| text/x-python
|
PythonLexer
/ tools / mkrel.py
vivainio
|
r767 | """ Create ipykit and exe installer | ||
vivainio
|
r757 | |||
requires py2exe | ||||
""" | ||||
vivainio
|
r756 | #!/bin/sh | ||
# IPython release script | ||||
vivainio
|
r757 | |||
vivainio
|
r756 | import os | ||
import distutils.dir_util | ||||
vivainio
|
r854 | import sys | ||
execfile('../IPython/Release.py') | ||||
vivainio
|
r756 | def c(cmd): | ||
print ">",cmd | ||||
os.system(cmd) | ||||
vivainio
|
r854 | ipykit_name = "ipykit-%s" % version | ||
vivainio
|
r756 | os.chdir('..') | ||
vivainio
|
r771 | if os.path.isdir('dist'): | ||
distutils.dir_util.remove_tree('dist') | ||||
vivainio
|
r854 | if os.path.isdir(ipykit_name): | ||
distutils.dir_util.remove_tree(ipykit_name) | ||||
vivainio
|
r756 | |||
vivainio
|
r757 | c("python exesetup.py py2exe") | ||
vivainio
|
r854 | os.rename('dist',ipykit_name) | ||
c("zip -r %s.zip %s" % (ipykit_name, ipykit_name)) | ||||
vivainio
|
r756 | |||
c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") | ||||
vivainio
|
r767 | |||
os.chdir("dist") | ||||
vivainio
|
r854 | #c("svn export http://ipython.scipy.org/svn/ipython/ipython/trunk ipython") | ||
#c("zip -r ipython_svn.zip ipython") | ||||