From dca1673c005151e18b05d8cc08f3d915023885d6 2008-05-23 16:12:32 From: Ville M. Vainio Date: 2008-05-23 16:12:32 Subject: [PATCH] mkrel changes (copy stff from 'release' sh script) --- diff --git a/IPython/Release.py b/IPython/Release.py index edb44f3..45534fe 100644 --- a/IPython/Release.py +++ b/IPython/Release.py @@ -22,7 +22,7 @@ name = 'ipython' # because bdist_rpm does not accept dashes (an RPM) convention, and # bdist_deb does not accept underscores (a Debian convention). -revision = '113' +revision = '114' branch = 'ipython' if branch == 'ipython': diff --git a/tools/make_tarball.py b/tools/make_tarball.py index 7768bcd..84491b9 100755 --- a/tools/make_tarball.py +++ b/tools/make_tarball.py @@ -1,5 +1,6 @@ import os,sys,shutil + basever = '0.8.3' def oscmd(c): @@ -19,7 +20,7 @@ def verinfo(): basename = 'ipython' #tarname = '%s.r%s.tgz' % (basename, ver) -oscmd('update_revnum.py') +oscmd('python update_revnum.py') ver = verinfo() diff --git a/tools/mkrel.py b/tools/mkrel.py index 4d3b056..b4206d2 100755 --- a/tools/mkrel.py +++ b/tools/mkrel.py @@ -26,14 +26,25 @@ if os.path.isdir('dist'): if os.path.isdir(ipykit_name): distutils.dir_util.remove_tree(ipykit_name) -c("python exesetup.py py2exe") +if sys.platform == 'win32': + c("python exesetup.py py2exe") -os.rename('dist',ipykit_name) + os.rename('dist',ipykit_name) -c("zip -r %s.zip %s" % (ipykit_name, ipykit_name)) + c("zip -r %s.zip %s" % (ipykit_name, ipykit_name)) + +# Build source and binary distros +c('./setup.py sdist --formats=gztar') + +c("python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4") +c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5") + +# Build eggs +c('python2.4 ./eggsetup.py bdist_egg') +c('python2.5 ./eggsetup.py bdist_egg') c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") -os.chdir("dist") -#c("svn export http://ipython.scipy.org/svn/ipython/ipython/trunk ipython") -#c("zip -r ipython_svn.zip ipython") +os.chdir('tools') +c('python make_tarball.py') +