Boost logo

Boost :

From: Johannes Brunen (jbrunen_at_[hidden])
Date: 2008-03-21 19:05:16


Hi,

today I have tried the boost python tutorial with the 1_35 release
candidate 2.
Unfortunately it didn't worked as expected. Especially, I'm missing the
hello.pyd
file after building the jamroot file.

Below I describe what I have done in detail.

I'm working on the windows platform with the msvc-7.1 compiler.
First I build the bjam.exe from the tools/jam folder with the
build_dist.bat script.
Next I used this one to build all the boost libraries by running

bjam --toolset=msvc-7.1 release debug stage

from the command line.
I then swichted to the libs/python/example/tutorial directory and called

bjam --toolset=msvc-7.1 release debug

from the command line. This failed with this output

F:/Development/Libraries/boost_1_35_0_RC2/tools/build/v2/build\project.j
am:307: in load-jamfile
F:/Development/Libraries/boost_1_35_0_RC2/tools/build/v2/build\project.j
am:63: in load
F:/Development/Libraries/boost_1_35_0_RC2/tools/build/v2/build\project.j
am:167: in project.find
F:/Development/Libraries/boost_1_35_0_RC2/tools/build/v2\build-system.ja
m:516: in load
F:\Development\Libraries\boost_1_35_0_RC2\libs\python\example\..\..\..\t
ools\build\v2/kernel\modules.jam:267: in import
F:\Development\Libraries\boost_1_35_0_RC2\libs\python\example\..\..\..\t
ools\build\v2/kernel/bootstrap.jam:132: in boost-build
F:\Development\Libraries\boost_1_35_0_RC2\libs\python\example\boost-buil
d.jam:7: in module scope

I then added the following line at the beginning of the jamroot file:

import python ;

After running the bjam again I found the following files in the
bin/msvc-7.1/release/threading-multi
subdirectory.

hello.obj
hello.obj.rsp
hello_ext.exp
hello_ext.lib
hello_ext.pyd.rsp

As you can see. The hello.pyd (or hello_ext.pyd) file is missing.

In order to confirm that I didn't fool myself, I tried exactly the same
procedure with the current boost
release 1_34_1. Here I found these files in the threading-multi
subdirectory.

hello.exp
hello.lib
hello.obj
hello.obj.rsp
hello.pyd
hello.pyd.rsp

With the hello.pyd file I was able to run the import from within the
python interpreter.

Is this a known problem?
Is my procedure correct?
Any tips what I can do?

Johannes Brunen
DataSolid GmbH


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk