Re: [Boost-users] boost::python and Python 2.4
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Noel Yap Sent: Monday, November 07, 2005 6:34 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
What did you have to do to get it to work with Python 2.4? Is all that's necessary to modify all references to python2.2 to python2.4?
[Nat] ? Not sure what references you mean. I just changed the environment variable we use for the Python base directory from c:\Python23 to c:\Python24, thus pointing to all new header files and libraries, and ta daa!
I see the problem. Since the location of pyconfig.h depends upon
which compiler was used, it's not located in the same directory as the
rest of the Python header files.
I've tried passing a ':'-separated path as PYTHON_INCLUDES, but that
doesn't work. Anyone have any thoughts on this? I suppose I /could/
hack around this by using symlinks, but I'd rather find a less hacky
solution.
Thanks,
Noel
On 11/7/05, Nat Goodspeed
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Noel Yap Sent: Monday, November 07, 2005 6:34 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
What did you have to do to get it to work with Python 2.4? Is all that's necessary to modify all references to python2.2 to python2.4?
[Nat] ? Not sure what references you mean. I just changed the environment variable we use for the Python base directory from c:\Python23 to c:\Python24, thus pointing to all new header files and libraries, and ta daa!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Nat Goodspeed"
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Noel Yap Sent: Monday, November 07, 2005 6:34 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
What did you have to do to get it to work with Python 2.4? Is all that's necessary to modify all references to python2.2 to python2.4?
[Nat] ? Not sure what references you mean. I just changed the environment variable we use for the Python base directory from c:\Python23 to c:\Python24, thus pointing to all new header files and libraries, and ta daa!
In the 1.33.1 beta or the current CVS, all you'd have to do is set PYTHON_VERSION=2.4 as long as you've installed it in the default location. In fact, now the default PYTHON_VERSION *is* 2.4, so you shouldn't need to do anything to get it to find the right Python installation, unless you used a non-default installation location, in which case set PYTHON_ROOT. It's all explained in http://www.boost-consulting.com/boost/libs/python/doc/building.html -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (3)
-
David Abrahams
-
Nat Goodspeed
-
Noel Yap