[C++-sig] Re: Building/testing extensions: boost-python-runtest
David Abrahams
dave at boost-consulting.com
Wed Sep 8 19:43:29 CEST 2004
"Neal D. Becker" <ndbecker2 at verizon.net> writes:
> David Abrahams wrote:
>
>> "Neal D. Becker" <ndbecker2 at verizon.net> writes:
>>
>>> Mark Rowe wrote:
>>>
>>>> On Wed, 08 Sep 2004 07:38:53 -0400, David Abrahams
>>>> <dave at boost-consulting.com> wrote:
>>>>>
>>>>> Try using this version of the rule instead, which allows you to list
>>>>> any number of python files in any order. If it works, let me know and
>>>>> I'll check it in.
>>>>
>>>> Thanks David, this seems to work fine.
>>>>
>>>
>>> Anyone who likes python might want to try scons.
>>>
>>> It's really easy to build python extensions with scons. Here is an
>>> example that would build uvector.so:
>>>
>>> BOOST_VERSION = 'boost.cvs'
>>> BOOST = '/usr/local/src/' + BOOST_VERSION
>>> BOOSTLIBPATH = BOOST+'/stage/lib'
>>> env = Environment (LIBPATH=['./',BOOSTLIBPATH], CPPPATH=[BOOST,
>>> '/usr/include/python2.3'], RPATH=['./',BOOSTLIBPATH])
>>> env.SharedLibrary (target='uvector', source='uvector.cc', SHLIBPREFIX='',
>>> LIBS=[BOOST_PYTHON_LIB])
>>
>> For which compilers/platforms does that combination of environment
>> variables work?
>>
>
> I'm using this on Linux Fedora core2, gcc is gcc-3.3.3 (don't think that
> matters much).
The same Scons file will work with vc6, vc7, vc7.1, metrowerks,
intel, ...?
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list