From a17006bdd36f1911324e4ed2c930de680584bd2f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 31 Oct 2013 13:37:13 -0700 Subject: [PATCH] scons: avoid pollution of global compiler flags from python plugin - closes #2060 --- plugins/input/python/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/input/python/build.py b/plugins/input/python/build.py index bf5313eb4..ffb6bdfbb 100644 --- a/plugins/input/python/build.py +++ b/plugins/input/python/build.py @@ -20,6 +20,7 @@ # import os +import copy Import ('plugin_base') Import ('env') @@ -42,7 +43,7 @@ libraries.append(env['BOOST_PYTHON_LIB']) libraries.append(env['ICU_LIB_NAME']) python_cpppath = env['PYTHON_INCLUDES'] -allcpp_paths = env['CPPPATH'] +allcpp_paths = copy.copy(env['CPPPATH']) allcpp_paths.extend(python_cpppath) # NOTE: explicit linking to libpython is uneeded on most linux version if the # python plugin is used by a app in python using mapnik's python bindings