Running python using Boost.Python modules
Is there a way to run python so that it picks up the C++ modules compiled using Boost.Python and bjam. I saw in the examples that you could run python from a bjam target such as the following: # Declare a test for the extension module boost-python-runtest test1 : # Python test driver src/python/test_getting_started1.py # extension modules to use <pyd>getting_started1 ; But I didn't see anything on how to run a python process independent of a bjam target. one possibility is to copy the modules into the python installation but i would prefer to use the libraries from python without having and side efffect on my python installation. Would appreciate any thoughts or direction toward the appropriate documentation. I might just be missing something really obvious here. -Tom
On Sat, 2005-04-23 at 14:36 -0400, Tom Denniston wrote:
Is there a way to run python so that it picks up the C++ modules compiled using Boost.Python and bjam. I saw in the examples that you could run python from a bjam target such as the following:
# Declare a test for the extension module boost-python-runtest test1 : # Python test driver src/python/test_getting_started1.py # extension modules to use <pyd>getting_started1 ;
But I didn't see anything on how to run a python process independent of a bjam target. one possibility is to copy the modules into the python installation but i would prefer to use the libraries from python without having and side efffect on my python installation.
Would appreciate any thoughts or direction toward the appropriate documentation. I might just be missing something really obvious here.
See sys.path in the Python Library Reference, and Installing Python Modules, section 4.1. HTH, -Jonathan
participants (2)
-
Jonathan Brandmeyer -
Tom Denniston