Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dca1673

Browse files
committed
mkrel changes (copy stff from 'release' sh script)
1 parent c7d6cde commit dca1673

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

IPython/Release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# because bdist_rpm does not accept dashes (an RPM) convention, and
2323
# bdist_deb does not accept underscores (a Debian convention).
2424

25-
revision = '113'
25+
revision = '114'
2626
branch = 'ipython'
2727

2828
if branch == 'ipython':

tools/make_tarball.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os,sys,shutil
22

3+
34
basever = '0.8.3'
45

56
def oscmd(c):
@@ -19,7 +20,7 @@ def verinfo():
1920
basename = 'ipython'
2021

2122
#tarname = '%s.r%s.tgz' % (basename, ver)
22-
oscmd('update_revnum.py')
23+
oscmd('python update_revnum.py')
2324

2425
ver = verinfo()
2526

tools/mkrel.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ def c(cmd):
2626
if os.path.isdir(ipykit_name):
2727
distutils.dir_util.remove_tree(ipykit_name)
2828

29-
c("python exesetup.py py2exe")
29+
if sys.platform == 'win32':
30+
c("python exesetup.py py2exe")
3031

31-
os.rename('dist',ipykit_name)
32+
os.rename('dist',ipykit_name)
3233

33-
c("zip -r %s.zip %s" % (ipykit_name, ipykit_name))
34+
c("zip -r %s.zip %s" % (ipykit_name, ipykit_name))
35+
36+
# Build source and binary distros
37+
c('./setup.py sdist --formats=gztar')
38+
39+
c("python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/python2.4")
40+
c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5")
41+
42+
# Build eggs
43+
c('python2.4 ./eggsetup.py bdist_egg')
44+
c('python2.5 ./eggsetup.py bdist_egg')
3445

3546
c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py")
3647

37-
os.chdir("dist")
38-
#c("svn export http://ipython.scipy.org/svn/ipython/ipython/trunk ipython")
39-
#c("zip -r ipython_svn.zip ipython")
48+
os.chdir('tools')
49+
c('python make_tarball.py')
50+

0 commit comments

Comments
 (0)