|
Boost : |
Subject: [boost] [python] run python script from bjam
From: lcaminiti (lorcaminiti_at_[hidden])
Date: 2012-05-25 10:18:50
Hello all,
I build a Boost.Python module and install it using bjam as follow:
python-extension pydef : deduced_params_pydef.cpp
: <library>/boost/python//boost_python
<library>/boost/regex//boost_regex
<link>shared:<define>BOOST_REGEX_DYN_LINK=1
;
install pydef_install : pydef
: <install-dependencies>on
<install-type>SHARED_LIB
<install-type>PYTHON_EXTENSION
<location>.
;
I the same dir I have a python script deduced_params_pydef.py which will
import the module and test it.
How do I run the python script automatically from bjam so to fully compile
and test the module that my code generates?
Something like (this doesn't work of course):
# Make sure pydef target is built first, then runs python
deduced_params_pydef.py
run-py pydef_install : deduced_params_pydef.py ;
Thanks a lot.
--Lorenzo
-- View this message in context: http://boost.2283326.n4.nabble.com/boost-python-run-python-script-from-bjam-tp4630494.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk