Show More
@@ -28,18 +28,8 b" sh('./setup.py sdist --formats=gztar,zip')" | |||||
28 | # Build eggs |
|
28 | # Build eggs | |
29 | sh('python ./setupegg.py bdist_egg') |
|
29 | sh('python ./setupegg.py bdist_egg') | |
30 |
|
30 | |||
31 | # Call the windows build separately, so that the extra Windows scripts don't |
|
31 | # Run windows builds | |
32 | # get pulled into Unix builds (setup.py has code which checks for |
|
32 | map(sh, win_builds) | |
33 | # bdist_wininst). Note that the install scripts args are added to the main |
|
|||
34 | # distutils call in setup.py, so they don't need to be passed here. |
|
|||
35 | sh("python setup.py bdist_wininst") |
|
|||
36 |
|
||||
37 | # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa |
|
|||
38 | # bug in distutils: http://bugs.python.org/issue6792. |
|
|||
39 | # So we have to build it with a wine-installed native Windows Python... |
|
|||
40 | sh("%s/.wine/dosdevices/c\:/Python27/python.exe setup.py build " |
|
|||
41 | "--plat-name=win-amd64 bdist_wininst " |
|
|||
42 | "--install-script=ipython_win_post_install.py" % os.environ['HOME']) |
|
|||
43 |
|
33 | |||
44 | # Change name so retarded Vista runs the installer correctly |
|
34 | # Change name so retarded Vista runs the installer correctly | |
45 | sh("rename 's/linux-i686/win32/' dist/*.exe") |
|
35 | sh("rename 's/linux-i686/win32/' dist/*.exe") |
@@ -50,6 +50,8 b" sh('./setup.py register')" | |||||
50 |
|
50 | |||
51 | # Upload all files |
|
51 | # Upload all files | |
52 | sh('./setup.py sdist --formats=gztar,zip upload') |
|
52 | sh('./setup.py sdist --formats=gztar,zip upload') | |
|
53 | for wb in win_builds: | |||
|
54 | sh(wb + ' upload') | |||
53 | cd(distdir) |
|
55 | cd(distdir) | |
54 | print( 'Uploading distribution files...') |
|
56 | print( 'Uploading distribution files...') | |
55 |
|
57 |
@@ -19,6 +19,21 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. | |||
|
23 | # 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 | |||
|
25 | # that the install scripts args are added to the main distutils call in | |||
|
26 | # setup.py, so they don't need to be passed here. | |||
|
27 | # | |||
|
28 | # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa | |||
|
29 | # bug in distutils: http://bugs.python.org/issue6792. | |||
|
30 | # So we have to build it with a wine-installed native Windows Python... | |||
|
31 | win_builds = ["python setup.py bdist_wininst", | |||
|
32 | r"%s/.wine/dosdevices/c\:/Python27/python.exe setup.py build " | |||
|
33 | "--plat-name=win-amd64 bdist_wininst " | |||
|
34 | "--install-script=ipython_win_post_install.py" % | |||
|
35 | os.environ['HOME'] ] | |||
|
36 | ||||
22 | # Utility functions |
|
37 | # Utility functions | |
23 | def sh(cmd): |
|
38 | def sh(cmd): | |
24 | """Run system command in shell, raise SystemExit if it returns an error.""" |
|
39 | """Run system command in shell, raise SystemExit if it returns an error.""" |
General Comments 0
You need to be logged in to leave comments.
Login now