Show More
@@ -6,6 +6,17 b' import os' | |||||
6 |
|
6 | |||
7 | from toollib import * |
|
7 | from toollib import * | |
8 |
|
8 | |||
|
9 | # The windows builds are fairly painful to set up on a posix system via wine, | |||
|
10 | # so by default we've disabled them and we just build the windows installers | |||
|
11 | # separately in a true Windows VM. | |||
|
12 | do_windows = False | |||
|
13 | ||||
|
14 | # Egg building is also disabled by default. They serve no real purpose in | |||
|
15 | # python2, and getting a setupegg.py file that has valid python2/3 syntax is a | |||
|
16 | # pain in the ass. Since the python devs were too stubborn to leave execfile() | |||
|
17 | # in place in python3, then we just don't build eggs. | |||
|
18 | do_eggs = False | |||
|
19 | ||||
9 | # Get main ipython dir, this will raise if it doesn't pass some checks |
|
20 | # Get main ipython dir, this will raise if it doesn't pass some checks | |
10 | ipdir = get_ipdir() |
|
21 | ipdir = get_ipdir() | |
11 | cd(ipdir) |
|
22 | cd(ipdir) | |
@@ -26,13 +37,13 b" for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist')," | |||||
26 | sh(sdists) |
|
37 | sh(sdists) | |
27 |
|
38 | |||
28 | # Build eggs |
|
39 | # Build eggs | |
29 | sh(eggs) |
|
40 | if do_eggs: | |
30 |
|
41 | sh(eggs) | ||
31 | # Run windows builds |
|
42 | ||
32 | map(sh, win_builds) |
|
43 | if do_windows: | |
33 |
|
44 | map(sh, win_builds) | ||
34 | # Change name so retarded Vista runs the installer correctly |
|
45 | # Change name so retarded Vista runs the installer correctly | |
35 | sh("rename 's/linux-i686/win32/' dist/*.exe") |
|
46 | sh("rename 's/linux-i686/win32/' dist/*.exe") | |
36 | sh("rename 's/linux-x86_64/win32/' dist/*.exe") |
|
47 | sh("rename 's/linux-x86_64/win32/' dist/*.exe") | |
37 | # exe files aren't really executable under *nix. |
|
48 | # exe files aren't really executable under *nix. | |
38 | sh("chmod -x dist/*.exe") |
|
49 | sh("chmod -x dist/*.exe") |
@@ -34,8 +34,9 b" eggs = './setupegg.py bdist_egg'" | |||||
34 | # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa |
|
34 | # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa | |
35 | # bug in distutils: http://bugs.python.org/issue6792. |
|
35 | # bug in distutils: http://bugs.python.org/issue6792. | |
36 | # So we have to build it with a wine-installed native Windows Python... |
|
36 | # So we have to build it with a wine-installed native Windows Python... | |
37 |
win_builds = ["python setup.py bdist_wininst" |
|
37 | win_builds = ["python setup.py bdist_wininst " | |
38 | r"%s/.wine/dosdevices/c\:/Python27/python.exe setup.py build " |
|
38 | "--install-script=ipython_win_post_install.py", | |
|
39 | r"%s/.wine/dosdevices/c\:/Python32/python.exe setup.py build " | |||
39 | "--plat-name=win-amd64 bdist_wininst " |
|
40 | "--plat-name=win-amd64 bdist_wininst " | |
40 | "--install-script=ipython_win_post_install.py" % |
|
41 | "--install-script=ipython_win_post_install.py" % | |
41 | os.environ['HOME'] ] |
|
42 | os.environ['HOME'] ] |
General Comments 0
You need to be logged in to leave comments.
Login now