Boost logo

Boost-Build :

From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-09-04 07:51:21


Vladimir Prus <ghost_at_[hidden]> writes:

> David Abrahams wrote:
>> Is it possible to build Python extensions (on Windows) with BBv2
>> yet? What would it take to get that going?
>
> I've got 'getting_started1' module build after making the attached changes
> (which still are not ready to be comitted).
>
> Alas, loading the module does not work. I get an error that MSVCP60D.dll is
> not found, and I don't know what this DLL is and where it comes from. Any
> ideas?

As Pedro remarked, it's part of the msvc runtime. We need a free
run-path feature which gets propagated from dependencies to dependents
and can be used to set up the PATH before anything is run.

I have a concern about this change:

> ===================================================================
> RCS file: /cvsroot/boost/boost/tools/build/tools/msvc.jam,v
> retrieving revision 1.10
> diff -u -r1.10 msvc.jam
> --- tools/msvc.jam 18 Aug 2003 04:39:43 -0000 1.10
> +++ tools/msvc.jam 4 Sep 2003 09:09:13 -0000
> @@ -313,6 +313,7 @@
>
> flags msvc NEEDLIBS <library-file> ;
> flags msvc LINKFLAGS <main-target-type>LIB/<link>shared : /DLL ;
> +flags msvc LINKFLAGS <main-target-type>PYTHON_EXTENSION/<link>shared : /DLL ;
>
> toolset.flags msvc.link USER_LINKFLAGS <linkflags> ;
> toolset.flags msvc.link LINKPATH <library-path> ;

It seems to me that <main-target-type>PYTHON_EXTENSION ought to be
expanded into something which includes
<main-target-type>LIB/<link>shared. Otherwise, target type
inheritance doesn't have much power.

> ===================================================================
> RCS file: /cvsroot/boost/boost/libs/python/build/Jamfile.v2,v
> retrieving revision 1.5
> diff -u -r1.5 Jamfile.v2
> --- Jamfile.v2 13 Jan 2003 12:31:12 -0000 1.5
> +++ Jamfile.v2 4 Sep 2003 09:10:13 -0000
> @@ -1,8 +1,11 @@
> import os ;
> +import modules ;
>
> # Use a very crude way to sense there python is locatted

Thanks for your efforts; I'll try this one out. I think ultimately
we need a python toolset, since for example I have multiple python
versions installed, and I have Python2.3

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk