wiki:PythonPort/Quickstart

Version 9 (modified by f.guerrieri@…, 16 years ago) ( diff )

specification of the toolset

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.Jam from http://svn.boost.org/svn/boost/trunk/tools/jam and build it, by going to the "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.
  2. Get a fresh version of Boost.Build from http://svn.boost.org/svn/boost/trunk/tools/build/v2
  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>" .

Note: See TracWiki for help on using the wiki.