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:
@@ -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) ] ;
|
||||
|
||||
Reference in New Issue
Block a user