2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00
* python.jam (python-test-generator.run): Set dependency
	on other python sources only for the result, not for
	extension module.
	Set ARGS variable on capture-output.


[SVN r35609]
This commit is contained in:
Vladimir Prus
2006-10-14 10:45:31 +00:00
parent b5d2720137
commit 349d1deea0

View File

@@ -526,6 +526,7 @@ class python-test-generator : generator
rule run ( project name ? : property-set : sources * : multiple ? )
{
local python ;
local other-pythons ;
for local s in $(sources)
{
if [ $(s).type ] = PY
@@ -538,7 +539,7 @@ class python-test-generator : generator
else
{
# Other Python sources become dependencies.
property-set = [ $(property-set).add-raw <dependency>$(s) ] ;
other-pythons += $(s) ;
}
}
}
@@ -585,7 +586,8 @@ class python-test-generator : generator
}
}
property-set = [ $(property-set).add-raw <dependency>$(other-pythons) ] ;
result = [ construct-result $(python) $(extensions) $(new-sources)
: $(project) $(name) : $(property-set) ] ;
}
@@ -598,6 +600,10 @@ generators.register-standard testing.expect-success
: RUN_PYD_OUTPUT : RUN_PYD ;
# The flag settings on testing.capture-output do not
# apply to python.capture output at the moment.
# Redo this explicitly.
toolset.flags python.capture-output ARGS <testing.arg> ;
rule capture-output ( target : sources * : properties * )
{
# Setup up proper DLL search path.