From c53d778a3706e286d2f2fca25ae27a710b431e04 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Tue, 16 Oct 2018 09:14:35 -0600 Subject: [PATCH] Make the python feature symmetric and relevant to avoid problems when changing the python configuration. Refs #356. --- src/tools/python.jam | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/python.jam b/src/tools/python.jam index 273b28a1e..00d2a36c6 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -552,7 +552,7 @@ local rule compute-default-paths ( target-os : version ? : prefix ? : } # The version of the python interpreter to use. -feature.feature python : : propagated ; +feature.feature python : : propagated symmetric ; feature.feature python.interpreter : : free ; toolset.flags python.capture-output PYTHON : ; @@ -948,6 +948,12 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? : # Register the right suffix for extensions. register-extension-suffix $(extension-suffix) : $(target-requirements) ; + # Make sure that the python feature is always considered + # relevant for any targets that depend on python. Without + # this, it would only be considered relevant when there are + # multiple configurations defined within the same build. + target-requirements += python ; + # # Declare the "python" target. This should really be called # python_for_embedding.