2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Make the python feature symmetric and relevant to avoid problems when changing the python configuration. Refs #356.

This commit is contained in:
Steven Watanabe
2018-10-16 09:14:35 -06:00
parent c8bd4136f2
commit c53d778a37

View File

@@ -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 : <python.interpreter> ;
@@ -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 += <relevant>python ;
#
# Declare the "python" target. This should really be called
# python_for_embedding.