Jamroot 775 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright Stefan Seefeld 2016.
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at
  4. # http://www.boost.org/LICENSE_1_0.txt)
  5. import python ;
  6. if ! [ python.configured ]
  7. {
  8. ECHO "warning: no Python configured in user-config.jam" ;
  9. ECHO "warning: will use default configuration" ;
  10. using python ;
  11. }
  12. # Adjust the following if Boost.Python isn't installed in a default location
  13. lib boost_python ;
  14. project
  15. : requirements
  16. # <include>/path/to/boost/python
  17. <library>boost_python
  18. ;
  19. rule run-test ( test-name : sources + )
  20. {
  21. import testing ;
  22. testing.make-test run-pyd : $(sources) : : $(test-name) ;
  23. }
  24. build-project quickstart ;
  25. build-project tutorial ;
  26. if [ python.numpy ]
  27. {
  28. build-project numpy ;
  29. }