From 14e2f3bb8ae0476af5ead4ede8341eb57691d37c Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 31 Jan 2006 16:17:10 +0000 Subject: [PATCH] Add proper PYTHONPATH elements when running Boost Python library tests. [SVN r32485] --- src/tools/python.jam | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/python.jam b/src/tools/python.jam index b923b950c..16c18b08a 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -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-]) ;