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: Tuesday, November 08, 2005 9:14 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
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.
[Nat] ? Sorry, I don't understand you at all. On my Windows system I installed Python 2.3 into the default directory, c:\Python23. Likewise Python 2.4 is installed in c:\Python24. The only pyconfig.h files on my system are in 'include' subdirectories of those two directories. They don't seem to be in compiler-dependent locations, and those 'include' subdirs ARE where 300+ other Python header files live. It's worth noting that we build the Boost libraries we use as MSVC 7.1 projects. Those projects (and others) look for a PYTHONDIR environment variable whose value used to be c:\Python23 and is now c:\Python24.
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.
[Nat] So, maybe the reason I don't understand the problem you're having is because you're on a different system with a different compiler.
On 11/8/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: Tuesday, November 08, 2005 9:14 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::python and Python 2.4
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.
[Nat] ?
Noel.
Sorry, I don't understand you at all. On my Windows system I installed Python 2.3 into the default directory, c:\Python23. Likewise Python 2.4 is installed in c:\Python24. The only pyconfig.h files on my system are in 'include' subdirectories of those two directories. They don't seem to be in compiler-dependent locations, and those 'include' subdirs ARE where 300+ other Python header files live.
My configuration is different. It's on Unix and I want to be able to support different compilers and compiler versions hence the separate location of pyconfig.h.
[Nat] So, maybe the reason I don't understand the problem you're having is because you're on a different system with a different compiler.
The default installation of Python would place the pyconfig.h file in the same directory as the rest of the header files. Since I want to be able to support different Python builds, the pyconfig.h file has to reside in a separate directory -- one related to the bin and lib directories (eg one using the --exec-prefix setting to configure). It seems Boost.Python can't grok this notion and I'll have to hack the configure script and possbily other stuff to get this to work. Noel
On 11/8/05, Noel Yap
The default installation of Python would place the pyconfig.h file in the same directory as the rest of the header files. Since I want to be able to support different Python builds, the pyconfig.h file has to reside in a separate directory -- one related to the bin and lib directories (eg one using the --exec-prefix setting to configure). It seems Boost.Python can't grok this notion and I'll have to hack the configure script and possbily other stuff to get this to work.
Doggone! I forgot there /is/ no configure script. I'll have to figure out how bjam does its configuration. Noel
participants (2)
-
Nat Goodspeed
-
Noel Yap