Don't initialize python in project-config.jam if it's already been configured in user-config.jam.

This commit is contained in:
Steven Watanabe 2015-02-28 20:31:53 -07:00
parent 9275200554
commit edca8b1e93

View file

@ -353,7 +353,11 @@ if test "x$flag_no_python" = x; then
cat >> project-config.jam <<EOF
# Python configuration
using python : $PYTHON_VERSION : $PYTHON_ROOT ;
import python ;
if ! [ python.configured ]
{
using python : $PYTHON_VERSION : $PYTHON_ROOT ;
}
EOF
fi