Show More
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Release data for the IPython project. |
|
3 | 3 | |
|
4 |
$Id: Release.py 196 |
|
|
4 | $Id: Release.py 1965 2006-12-07 16:07:14Z vivainio $""" | |
|
5 | 5 | |
|
6 | 6 | #***************************************************************************** |
|
7 | 7 | # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu> |
@@ -22,7 +22,7 b" name = 'ipython'" | |||
|
22 | 22 | # because bdist_rpm does not accept dashes (an RPM) convention, and |
|
23 | 23 | # bdist_deb does not accept underscores (a Debian convention). |
|
24 | 24 | |
|
25 |
revision = '19 |
|
|
25 | revision = '1964M' | |
|
26 | 26 | |
|
27 | 27 | #version = '0.7.3.svn' |
|
28 | 28 |
@@ -1,13 +1,18 b'' | |||
|
1 | import os | |
|
1 | import os,sys,shutil | |
|
2 | 2 | |
|
3 | repo = "http://ipython.scipy.org/svn/ipython/trunk" | |
|
3 | repo = "http://ipython.scipy.org/svn/ipython/ipython/trunk" | |
|
4 | 4 | basename = 'ipython' |
|
5 | 5 | workdir = './mkdist' |
|
6 | 6 | |
|
7 | 7 | workdir = os.path.abspath(workdir) |
|
8 | ||
|
9 | print "working at",workdir | |
|
8 | 10 | def oscmd(c): |
|
9 | 11 | print ">",c |
|
10 | os.system(c) | |
|
12 | s = os.system(c) | |
|
13 | if s: | |
|
14 | print "Error",s | |
|
15 | sys.exit(s) | |
|
11 | 16 | |
|
12 | 17 | |
|
13 | 18 | assert not os.path.isdir(workdir) |
@@ -15,7 +20,8 b' os.mkdir(workdir)' | |||
|
15 | 20 | os.chdir(workdir) |
|
16 | 21 | |
|
17 | 22 | oscmd('svn co %s %s' % (repo,basename)) |
|
18 | ver = os.popen('svnversion %s' % basename) | |
|
23 | ver = os.popen('svnversion %s' % basename).read().strip() | |
|
19 | 24 | tarname = '%s.r%s.tgz' % (basename, ver) |
|
20 | oscmd('tar czvf %s %s' % (tarname, basename)) | |
|
25 | oscmd('tar czvf ../%s %s' % (tarname, basename)) | |
|
26 | print "Produced: ",os.path.abspath('../' + tarname) | |
|
21 | 27 | shutil.rmtree(workdir) |
General Comments 0
You need to be logged in to leave comments.
Login now