##// END OF EJS Templates
Put build cmds in a single place to minimize repetition errors.
Fernando Perez -
Show More
@@ -23,10 +23,10 b" for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),"
23 remove_tree(d)
23 remove_tree(d)
24
24
25 # Build source and binary distros
25 # Build source and binary distros
26 sh('./setup.py sdist --formats=gztar,zip')
26 sh(sdists)
27
27
28 # Build eggs
28 # Build eggs
29 sh('python ./setupegg.py bdist_egg')
29 sh(eggs)
30
30
31 # Run windows builds
31 # Run windows builds
32 map(sh, win_builds)
32 map(sh, win_builds)
@@ -49,9 +49,8 b' cd(ipdir)'
49 sh('./setup.py register')
49 sh('./setup.py register')
50
50
51 # Upload all files
51 # Upload all files
52 sh('./setup.py sdist --formats=gztar,zip upload')
52 for cmd in [sdists, eggs] + win_builds:
53 for wb in win_builds:
53 sh(cmd + ' upload')
54 sh(wb + ' upload')
55 cd(distdir)
54 cd(distdir)
56 print( 'Uploading distribution files...')
55 print( 'Uploading distribution files...')
57
56
@@ -19,7 +19,13 b" archive_user = 'ipython@archive.ipython.org'"
19 archive_dir = 'archive.ipython.org'
19 archive_dir = 'archive.ipython.org'
20 archive = '%s:%s' % (archive_user, archive_dir)
20 archive = '%s:%s' % (archive_user, archive_dir)
21
21
22 # Commands for Windows builds.
22 # Build commands
23 # Source dists
24 sdists = './setup.py sdist --formats=gztar,zip'
25 # Eggs
26 eggs = './setupegg.py bdist_egg'
27
28 # Windows builds.
23 # We do them separately, so that the extra Windows scripts don't get pulled
29 # We do them separately, so that the extra Windows scripts don't get pulled
24 # into Unix builds (setup.py has code which checks for bdist_wininst). Note
30 # into Unix builds (setup.py has code which checks for bdist_wininst). Note
25 # that the install scripts args are added to the main distutils call in
31 # that the install scripts args are added to the main distutils call in
General Comments 0
You need to be logged in to leave comments. Login now