Show More
@@ -6,17 +6,6 b' import os' | |||
|
6 | 6 | |
|
7 | 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 | ||
|
20 | 9 | # Get main ipython dir, this will raise if it doesn't pass some checks |
|
21 | 10 | ipdir = get_ipdir() |
|
22 | 11 | cd(ipdir) |
@@ -35,15 +24,4 b" for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist')," | |||
|
35 | 24 | |
|
36 | 25 | # Build source and binary distros |
|
37 | 26 | sh(sdists) |
|
38 | ||
|
39 | # Build eggs | |
|
40 | if do_eggs: | |
|
41 | sh(eggs) | |
|
42 | ||
|
43 | if do_windows: | |
|
44 | map(sh, win_builds) | |
|
45 | # Change name so retarded Vista runs the installer correctly | |
|
46 | sh("rename 's/linux-i686/win32/' dist/*.exe") | |
|
47 | sh("rename 's/linux-x86_64/win32/' dist/*.exe") | |
|
48 | # exe files aren't really executable under *nix. | |
|
49 | sh("chmod -x dist/*.exe") | |
|
27 | sh(wheels) |
@@ -101,11 +101,11 b' def report(issues, show_urls=False):' | |||
|
101 | 101 | if show_urls: |
|
102 | 102 | for i in issues: |
|
103 | 103 | role = 'ghpull' if 'merged_at' in i else 'ghissue' |
|
104 | print('* :%s:`%d`: %s' % (role, i['number'], | |
|
105 |
i['title'].replace('`', '`` |
|
|
104 | print(u'* :%s:`%d`: %s' % (role, i['number'], | |
|
105 | i['title'].replace(u'`', u'``'))) | |
|
106 | 106 | else: |
|
107 | 107 | for i in issues: |
|
108 |
print('* %d: %s' % (i['number'], i['title'].replace('`', '`` |
|
|
108 | print(u'* %d: %s' % (i['number'], i['title'].replace(u'`', u'``'))) | |
|
109 | 109 | |
|
110 | 110 | #----------------------------------------------------------------------------- |
|
111 | 111 | # Main script |
@@ -15,6 +15,8 b" distdir = pjoin(ipdir, 'dist')" | |||
|
15 | 15 | |
|
16 | 16 | # Where I keep static backups of each release |
|
17 | 17 | ipbackupdir = os.path.expanduser('~/ipython/backup') |
|
18 | if not os.path.exists(ipbackupdir): | |
|
19 | os.makedirs(ipbackupdir) | |
|
18 | 20 | |
|
19 | 21 | # Start in main IPython dir |
|
20 | 22 | cd(ipdir) |
@@ -53,14 +55,14 b" sh('./setup.py register')" | |||
|
53 | 55 | |
|
54 | 56 | # Upload all files |
|
55 | 57 | sh(sdists + ' upload') |
|
56 |
for py in ('2.7', '3. |
|
|
58 | for py in ('2.7', '3.4'): | |
|
57 | 59 | sh('python%s setupegg.py bdist_wheel' % py) |
|
58 | 60 | |
|
59 | 61 | cd(distdir) |
|
60 | 62 | print( 'Uploading distribution files...') |
|
61 | 63 | |
|
62 | 64 | for fname in os.listdir('.'): |
|
63 | # GitHub doesn't have an API for uploads at the moment | |
|
65 | # TODO: update to GitHub releases API | |
|
64 | 66 | continue |
|
65 | 67 | print('uploading %s to GitHub' % fname) |
|
66 | 68 | desc = "IPython %s source distribution" % version |
@@ -20,24 +20,8 b" archive = '%s:%s' % (archive_user, archive_dir)" | |||
|
20 | 20 | # Build commands |
|
21 | 21 | # Source dists |
|
22 | 22 | sdists = './setup.py sdist --formats=gztar,zip' |
|
23 | # Eggs | |
|
24 |
|
|
|
25 | ||
|
26 | # Windows builds. | |
|
27 | # We do them separately, so that the extra Windows scripts don't get pulled | |
|
28 | # into Unix builds (setup.py has code which checks for bdist_wininst). Note | |
|
29 | # that the install scripts args are added to the main distutils call in | |
|
30 | # setup.py, so they don't need to be passed here. | |
|
31 | # | |
|
32 | # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa | |
|
33 | # bug in distutils: http://bugs.python.org/issue6792. | |
|
34 | # So we have to build it with a wine-installed native Windows Python... | |
|
35 | win_builds = ["python setup.py bdist_wininst " | |
|
36 | "--install-script=ipython_win_post_install.py", | |
|
37 | r"%s/.wine/dosdevices/c\:/Python32/python.exe setup.py build " | |
|
38 | "--plat-name=win-amd64 bdist_wininst " | |
|
39 | "--install-script=ipython_win_post_install.py" % | |
|
40 | os.environ['HOME'] ] | |
|
23 | # Binary dists | |
|
24 | wheels = './setupegg.py bdist_wheel' | |
|
41 | 25 | |
|
42 | 26 | # Utility functions |
|
43 | 27 | def sh(cmd): |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now