scons: avoid pollution of global compiler flags from python plugin - closes #2060

This commit is contained in:
Dane Springmeyer 2013-10-31 13:37:13 -07:00
parent 6bbd8210f8
commit a17006bdd3

View file

@ -20,6 +20,7 @@
# #
import os import os
import copy
Import ('plugin_base') Import ('plugin_base')
Import ('env') Import ('env')
@ -42,7 +43,7 @@ libraries.append(env['BOOST_PYTHON_LIB'])
libraries.append(env['ICU_LIB_NAME']) libraries.append(env['ICU_LIB_NAME'])
python_cpppath = env['PYTHON_INCLUDES'] python_cpppath = env['PYTHON_INCLUDES']
allcpp_paths = env['CPPPATH'] allcpp_paths = copy.copy(env['CPPPATH'])
allcpp_paths.extend(python_cpppath) allcpp_paths.extend(python_cpppath)
# NOTE: explicit linking to libpython is uneeded on most linux version if the # 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 # python plugin is used by a app in python using mapnik's python bindings