##// END OF EJS Templates
Remove pycompile check for building packages
Thomas Kluyver -
Show More
@@ -4,7 +4,7 b''
4 import os
4 import os
5 from shutil import rmtree
5 from shutil import rmtree
6
6
7 from toollib import sh, pjoin, get_ipdir, cd, compile_tree, execfile, sdists, buildwheels
7 from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels
8
8
9 def build_release():
9 def build_release():
10
10
@@ -15,9 +15,6 b' def build_release():'
15 # Load release info
15 # Load release info
16 execfile(pjoin('IPython', 'core', 'release.py'), globals())
16 execfile(pjoin('IPython', 'core', 'release.py'), globals())
17
17
18 # Check that everything compiles
19 compile_tree('*')
20
21 # Cleanup
18 # Cleanup
22 for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),
19 for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),
23 pjoin('docs', 'source', 'api', 'generated')]:
20 pjoin('docs', 'source', 'api', 'generated')]:
@@ -49,15 +49,6 b' def get_ipdir():'
49 raise SystemExit('Invalid ipython directory: %s' % ipdir)
49 raise SystemExit('Invalid ipython directory: %s' % ipdir)
50 return ipdir
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 try:
52 try:
62 execfile = execfile
53 execfile = execfile
63 except NameError:
54 except NameError:
General Comments 0
You need to be logged in to leave comments. Login now