From 6eea010c6a766c3f2df897040295f1cc8fe8414f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 29 Jul 2014 17:54:49 -0700 Subject: [PATCH] scons: fix first-run clean problem #2112 --- SConstruct | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SConstruct b/SConstruct index b04341e39..2a454f0ae 100644 --- a/SConstruct +++ b/SConstruct @@ -493,6 +493,12 @@ elif HELP_REQUESTED: # to ensure config gets skipped when help is requested preconfigured = True +# need no-op for clean on fresh checkout +# https://github.com/mapnik/mapnik/issues/2112 +if ('-c' in command_line_args) or ('--clean' in command_line_args) and not os.path.exists(SCONS_CONFIGURE_CACHE): + print 'all good: nothing to clean' + Exit(0) + # initially populate environment with defaults and any possible custom arguments opts.Update(env)