From: Robin Dunn Date: Thu, 20 Nov 2003 01:10:20 +0000 (+0000) Subject: Don't run SWIG when we're doing a clean X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ce8f00f30caa0a994f22718a54cd27a504331099 Don't run SWIG when we're doing a clean git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/setup.py b/wxPython/setup.py index c2e90d82f3..d5ed5ec7b0 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -160,6 +160,8 @@ DATA_FILES = [] force = '--force' in sys.argv or '-f' in sys.argv debug = '--debug' in sys.argv or '-g' in sys.argv +cleaning = 'clean' in sys.argv + # change the PORT default for wxMac if sys.platform[:6] == "darwin": @@ -254,7 +256,7 @@ def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps= sources.append(cpp_file) - if USE_SWIG: + if not cleaning and USE_SWIG: for dep in swig_deps: if newer(dep, py_file) or newer(dep, cpp_file): force = 1