wscript_build 602 B

1234567891011121314151617181920212223242526272829
  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. if bld.env['PYTHON']:
  4. bld(
  5. features = 'subst',
  6. source = 'test.py.in',
  7. target = 'test.1.py',
  8. NAME = 'first test3',
  9. EXIT_STATUS = '0',
  10. )
  11. bld(
  12. features = 'subst',
  13. source = 'test.py.in',
  14. target = 'test.2.py',
  15. NAME = 'second test3',
  16. EXIT_STATUS = '0',
  17. )
  18. paths = {
  19. 'PYTHONPATH': bld.path.abspath()
  20. }
  21. bld(
  22. features = 'test_scripts',
  23. test_scripts_source = 'test.1.py test.2.py',
  24. test_scripts_template = '${PYTHON} ${SCRIPT}',
  25. test_scripts_paths = paths
  26. )