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 6import python ; 7import testing ; 8 9project quickstart 10 : requirements 11 <location>. 12 ; 13 14# Declare a Python extension called hello. 15python-extension extending : extending.cpp ; 16 17# Declare an executable called embedding that embeds Python 18exe embedding : embedding.cpp /python//python ; 19 20# Declare a test of the extension module 21testing.make-test run-pyd : extending test_extending.py : : test_ext ; 22 23# Declare a test of the embedding application 24testing.run embedding embedding.cpp 25 : # any ordinary arguments 26 : script.py # any arguments that should be treated as relative paths 27 : # requirements 28 : test_embed ; # name of test 29 30# Create a "test" target that runs all the tests 31alias test : test_ext test_embed ; 32 33# make sure the tests don't run by default 34explicit test_ext test_embed test ; 35 36