Skip to content

Commit 1e31524

Browse files
committed
Fix libs from referencing BPL when there is no python configured.
1 parent 77ee91d commit 1e31524

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

build/Jamfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { retu
4242
rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
4343
local rule eq ( a : b ) { if $(a) = $(b) { return 1 ; } }
4444

45-
lib_boost_python($(py2-version)) = boost_python ;
46-
lib_boost_python($(py3-version)) = boost_python3 ;
45+
lib_boost_python(2) = boost_python ;
46+
lib_boost_python(3) = boost_python3 ;
47+
48+
lib_boost_python($(py2-version)) = $(lib_boost_python(2)) ;
49+
lib_boost_python($(py3-version)) = $(lib_boost_python(3)) ;
4750

4851
rule lib_boost_python ( version )
4952
{
@@ -169,6 +172,10 @@ for local N in 2 3
169172
libraries += $(lib_boost_numpy($(py$(N)-version))) ;
170173
}
171174
}
175+
else
176+
{
177+
alias $(lib_boost_python($(N))) ;
178+
}
172179
}
173180

174181
boost-install $(libraries) ;

0 commit comments

Comments
 (0)