2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-10 23:32:20 +00:00

Make python.require-py safe to use when python is not found at all.

This commit is contained in:
Steven Watanabe
2018-02-20 11:38:12 -07:00
parent 2dd4ba21e5
commit 0dacbc3df6

View File

@@ -1044,7 +1044,11 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
# required properties.
rule require-py ( properties * )
{
local py-ext-target = [ $(.project).find python_for_extensions ] ;
local py-ext-target = [ $(.project).find python_for_extensions : no-error ] ;
if ! $(py-ext-target)
{
return <build>no ;
}
local property-set = [ property-set.create $(properties) ] ;
property-set = [ $(property-set).expand ] ;
local py-ext-alternative = [ $(py-ext-target).select-alternatives $(property-set) ] ;