==== //actuality2/development/boost/tools/build/v2/tools/python.jam#3 - /home/jnapoli/development/boost/tools/build/v2/tools/python.jam ==== @@ -1113,6 +1113,13 @@ return $(x[1]) ; } +#Extract the path to a single ".pyd" source. This is used to build +#the PYTHONPATH for running bpl tests. +rule pyd-pythonpath ( source ) +{ + return [ on $(source) return $(LOCATE) $(SEARCH) ] ; +} + # The flag settings on testing.capture-output do not # apply to python.capture output at the moment. # Redo this explicitly. @@ -1126,7 +1133,7 @@ # over explicitly. RUN_PATH on $(sources[1]) = [ on $(sources[2-]) return $(RUN_PATH) ] ; - PYTHONPATH = [ on $(sources[2-]) return $(LOCATE) $(SEARCH) ] ; + PYTHONPATH = [ sequence.transform pyd-pythonpath : $(sources[2-]) ] ; # After test is run, we remove the Python module, but not the Python # script.