wiki:PythonPort/Quickstart

Python Port quickstart

At present, only gcc is supported toolset. To run the Boost.Build Python port, follow these steps:

  1. Get a fresh version of Boost.Build from http://svn.boost.org/svn/boost/trunk/tools/build/v2
  2. Build the build engine executable, by going to the engine/src subdirectory and running./build.sh --with-python=/usr. On Windows, use build.bat "--with-python=<python-root>" -- note the quotation marks -- you should use them, literally.
  3. Go to the example/hello
  4. Create file user-config.jam, with "using gcc ;" as the content.
  5. Run bjam --python --user-config=user-config.jam.

Note: the bjam binary used in step 3 should be the one you've built in step 1.

Note: You can explicitly specify the toolset. This can be useful if you wish to use gcc and instead another compiler is being picked. Just add the name of the toolset after the command, for instance: build.bat gcc "--with-python=<python-root>" .

Last modified 15 years ago Last modified on Dec 29, 2010, 10:49:53 AM
Note: See TracWiki for help on using the wiki.