Show More
@@ -4,7 +4,7 b'' | |||
|
4 | 4 | import os |
|
5 | 5 | from shutil import rmtree |
|
6 | 6 | |
|
7 |
from toollib import sh, pjoin, get_ipdir, cd, |
|
|
7 | from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels | |
|
8 | 8 | |
|
9 | 9 | def build_release(): |
|
10 | 10 | |
@@ -15,9 +15,6 b' def build_release():' | |||
|
15 | 15 | # Load release info |
|
16 | 16 | execfile(pjoin('IPython', 'core', 'release.py'), globals()) |
|
17 | 17 | |
|
18 | # Check that everything compiles | |
|
19 | compile_tree('*') | |
|
20 | ||
|
21 | 18 | # Cleanup |
|
22 | 19 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), |
|
23 | 20 | pjoin('docs', 'source', 'api', 'generated')]: |
@@ -49,15 +49,6 b' def get_ipdir():' | |||
|
49 | 49 | raise SystemExit('Invalid ipython directory: %s' % ipdir) |
|
50 | 50 | return ipdir |
|
51 | 51 | |
|
52 | ||
|
53 | def compile_tree(folder='.'): | |
|
54 | """Compile all Python files below current directory.""" | |
|
55 | stat = os.system('python -m compileall {}'.format(folder)) | |
|
56 | if stat: | |
|
57 | msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n' | |
|
58 | msg += 'See messages above for the actual file that produced it.\n' | |
|
59 | raise SystemExit(msg) | |
|
60 | ||
|
61 | 52 | try: |
|
62 | 53 | execfile = execfile |
|
63 | 54 | except NameError: |
General Comments 0
You need to be logged in to leave comments.
Login now