From 3b61f32870c696fd6540e91a93c7676f46e04e4a 2016-02-03 17:36:52 From: Thomas Kluyver Date: 2016-02-03 17:36:52 Subject: [PATCH] Remove pycompile check for building packages --- diff --git a/tools/build_release b/tools/build_release index 3521e5f..3b115f1 100755 --- a/tools/build_release +++ b/tools/build_release @@ -4,7 +4,7 @@ import os from shutil import rmtree -from toollib import sh, pjoin, get_ipdir, cd, compile_tree, execfile, sdists, buildwheels +from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels def build_release(): @@ -15,9 +15,6 @@ def build_release(): # Load release info execfile(pjoin('IPython', 'core', 'release.py'), globals()) - # Check that everything compiles - compile_tree('*') - # Cleanup for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), pjoin('docs', 'source', 'api', 'generated')]: diff --git a/tools/toollib.py b/tools/toollib.py index a5440ea..ad71bd0 100644 --- a/tools/toollib.py +++ b/tools/toollib.py @@ -49,15 +49,6 @@ def get_ipdir(): raise SystemExit('Invalid ipython directory: %s' % ipdir) return ipdir - -def compile_tree(folder='.'): - """Compile all Python files below current directory.""" - stat = os.system('python -m compileall {}'.format(folder)) - if stat: - msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n' - msg += 'See messages above for the actual file that produced it.\n' - raise SystemExit(msg) - try: execfile = execfile except NameError: