build with specific python exec

I want to build using a python installed as "python24". How can I do this?

Neal Becker wrote:
I want to build using a python installed as "python24". How can I do this?
bjam ... -sPYTHON_VERSION=2.4 .. ?? -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Neal Becker wrote:
Rene Rivera wrote:
Neal Becker wrote:
I want to build using a python installed as "python24". How can I do this?
bjam ... -sPYTHON_VERSION=2.4 ..
??
Oh, OK. So build process only needs to find the libs, not the python executable?
Good question.. don't know the answer, Dave? But there is code in BBv1/python.jam to search for python[version](.exe). don't know if it's only used for testing, or both testing and building. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Rene Rivera wrote:
Neal Becker wrote:
Rene Rivera wrote:
Neal Becker wrote:
I want to build using a python installed as "python24". How can I do this?
bjam ... -sPYTHON_VERSION=2.4 ..
??
Oh, OK. So build process only needs to find the libs, not the python executable?
That's right, unless you want to run tests through bjam.
Good question.. don't know the answer, Dave?
But there is code in BBv1/python.jam to search for python[version](.exe).
I don't see that anywhere. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

David Abrahams wrote:
Rene Rivera wrote:
But there is code in BBv1/python.jam to search for python[version](.exe).
I don't see that anywhere.
At line #149, of tools/build/v1/python.jam there's this comment: # Locate the python executable(s) Followed by a bunch of code which eventually sets SEARCH on the executable. But I don't really understand what it's used for :-( -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

Rene Rivera wrote:
David Abrahams wrote:
Rene Rivera wrote:
But there is code in BBv1/python.jam to search for python[version](.exe).
I don't see that anywhere.
At line #149, of tools/build/v1/python.jam there's this comment:
# Locate the python executable(s)
Followed by a bunch of code which eventually sets SEARCH on the executable. But I don't really understand what it's used for :-(
Hmm. As far as I can tell it isn't doing anything :-( -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Hi All. tried on VC7.1++ : #include <boost\bind.hpp> #include <boost\mpl\at.hpp> recieve error: boost\boost\mpl\less.hpp(39) : error C2760: syntax error : expected ',' not ';' boost\boost\mpl\less.hpp(51) : see reference to class template instantiation 'boost::mpl::less<T1,T2>' being compiled boost\boost\mpl\less.hpp(39) : error C2144: syntax error : 'const bool' should be preceded by '}' boost\boost\mpl\less.hpp(39) : error C2062: type 'const bool' unexpected boost\boost\mpl\less.hpp(39) : error C2238: unexpected token(s) preceding ';' boost\boost\mpl\less.hpp(42) : error C2065: 'value' : undeclared identifier the less.hpp line 39 is: BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_); before goes: enum { msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value < BOOST_MPL_AUX_VALUE_WKND(T2)::value) }; How can I fix it ? --Sincerely Yours,-- --\ SergeY /-- --<>\\\ PisarchiK ///<>-- --<>()<>--Never surrendeR--<>()<>-- mailto:Sergey_pisarchiK@tut.by

Sergey Pisarchik wrote:
enum { msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value < BOOST_MPL_AUX_VALUE_WKND(T2)::value) };
How can I fix it ?
Switch the order of the arguments: msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T2)::value > BOOST_MPL_AUX_VALUE_WKND(T1)::value) I thought we fixed that long ago... are you still using 1.31?

Peter Dimov writes:
Sergey Pisarchik wrote:
enum { msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value < BOOST_MPL_AUX_VALUE_WKND(T2)::value) };
How can I fix it ?
Switch the order of the arguments:
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T2)::value > BOOST_MPL_AUX_VALUE_WKND(T1)::value)
I thought we fixed that long ago...
We did. -- Aleksey Gurtovoy MetaCommunications Engineering

Sergey Pisarchik writes:
tried on VC7.1++ :
#include <boost\bind.hpp> #include <boost\mpl\at.hpp>
^^^^^^^^^^^^^^^^^^ FYI, backslashes in include directives are non-portable; the above should be #include <boost/mpl/at.hpp>
recieve error:
[...]
before goes: enum { msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value < BOOST_MPL_AUX_VALUE_WKND(T2)::value) };
How can I fix it ?
See Peter's reply or upgrade to 1.32. -- Aleksey Gurtovoy MetaCommunications Engineering

Neal Becker wrote:
I want to build using a python installed as "python24". How can I do this?
What do you mean "installed as?" If it's just a matter of the executable name, you don't need to do anything special to build. Just follow the instructions at http://www.boost.org/libs/python/doc/building.html If you want to run tests, though, we might have a problem. You may need to make an alias. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (6)
-
Aleksey Gurtovoy
-
David Abrahams
-
Neal Becker
-
Peter Dimov
-
Rene Rivera
-
Sergey Pisarchik