From 01a6d2384331e07a7e8249d75f4baa49aa85069c 2015-01-09 22:02:39 From: Min RK Date: 2015-01-09 22:02:39 Subject: [PATCH] remove strict arg from css_js_prerelease --- diff --git a/setup.py b/setup.py index 1c889ee..31c4730 100755 --- a/setup.py +++ b/setup.py @@ -214,9 +214,8 @@ class UploadWindowsInstallers(upload): setup_args['cmdclass'] = { 'build_py': css_js_prerelease( - check_package_data_first(git_prebuild('IPython')), - strict=False), - 'sdist' : css_js_prerelease(git_prebuild('IPython', sdist), strict=False), + check_package_data_first(git_prebuild('IPython'))), + 'sdist' : css_js_prerelease(git_prebuild('IPython', sdist)), 'upload_wininst' : UploadWindowsInstallers, 'submodule' : UpdateSubmodules, 'css' : CompileCSS, @@ -284,7 +283,7 @@ if 'setuptools' in sys.modules: # setup.py develop should check for submodules from setuptools.command.develop import develop setup_args['cmdclass']['develop'] = require_submodules(develop) - setup_args['cmdclass']['bdist_wheel'] = css_js_prerelease(get_bdist_wheel(), strict=False) + setup_args['cmdclass']['bdist_wheel'] = css_js_prerelease(get_bdist_wheel()) setuptools_extra_args['zip_safe'] = False setuptools_extra_args['entry_points'] = {'console_scripts':find_entry_points()} diff --git a/setupbase.py b/setupbase.py index a4e0d98..c8c0f62 100644 --- a/setupbase.py +++ b/setupbase.py @@ -746,7 +746,7 @@ class JavascriptVersion(Command): f.write(line) -def css_js_prerelease(command, strict=True): +def css_js_prerelease(command): """decorator for building js/minified css prior to a release""" class DecoratedCommand(command): def run(self): @@ -756,10 +756,7 @@ def css_js_prerelease(command, strict=True): try: self.distribution.run_command('css') except Exception as e: - if strict: - raise - else: - log.warn("rebuilding css and sourcemaps failed (not a problem)") - log.warn(str(e)) + log.warn("rebuilding css and sourcemaps failed (not a problem)") + log.warn(str(e)) command.run(self) return DecoratedCommand