2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Add proper PYTHONPATH elements when running Boost Python library tests.

[SVN r32485]
This commit is contained in:
Vladimir Prus
2006-01-31 16:17:10 +00:00
parent 6a57708305
commit 14e2f3bb8a

View File

@@ -414,6 +414,11 @@ class python-test-generator : generator
}
local extension = [ generators.construct $(project) $(name) :
PYTHON_EXTENSION : $(property-set) : $(s) $(libs) ] ;
# The important part of usage requirements returned from
# PYTHON_EXTENSION genrator are xdll-path properties that
# will allow to find python extension at runtime.
property-set = [ $(property-set).add $(extension[1]) ] ;
# Ignore usage requirements. We're top-level generator and
# nobody is going to use us.
new-sources += $(extension[2-]) ;