From 8c8b0dc2152efb2706a782ff1c0fdd2e0705ce69 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 18 Apr 2019 00:02:52 +0300 Subject: [PATCH] Only boost-install boost_numpy when it's being built --- build/Jamfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/build/Jamfile b/build/Jamfile index 34f99dde..d03d4dd0 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -30,8 +30,6 @@ else ; } -if [ python.configured ] -{ project boost/python : source-location ../src ; @@ -123,7 +121,7 @@ lib boost_numpy boost_python on:BOOST_DEBUG_PYTHON -@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag - @$(__name__).python-tag + @$(__name__).python-tag @python.require-py : # default build @@ -142,8 +140,16 @@ lib boost_numpy # `install` installs the two libraries and their dependencies and is similar # to issuing `b2 --with-python install` from top level -boost-install boost_python boost_numpy ; - +if [ python.configured ] +{ + if [ python.numpy ] + { + boost-install boost_python boost_numpy ; + } + else + { + boost-install boost_python ; + } } else {