[Bf-committers] solving the issues of switching to python 2.4on Os X for next release

Gabriel Beloin gbeloin at netrevolution.com
Wed Aug 31 15:36:30 CEST 2005


Shaul Kedem wrote:

> Hi,
>  I see that OSX and Debian are mentioned... let me add "Gentoo" to the 
> list.. current stable build for python in gentoo is 2.3.5, which is 
> fine by itself (you can always build an "unstable" version in gentoo) 
> *but* gentoo build system ("emerge") is using python heavily, and 
> installing two versions of python is unadviced.
>  
>  So the bottom line is that "stable" gentoo is always a 2.3 python 
> environment for now,
>  
> Shaul
>
>  
> On 8/26/05, *Joseph Gilbert* <jgilbert at tigr.org 
> <mailto:jgilbert at tigr.org>> wrote:
>
>     Hmm. kk well im not exactly sure but it seems to me that your having a
>     problem with the c/c++ headers. I found someone witha similar
>     problem:
>     http://gcc.gnu.org/ml/libstdc++/2003-01/msg00210.html
>     It's hard to say where this is coming from, maybe the standard library
>     headers being pulled in by Python.h. Im sure there is a solution out
>     there :) As stivs pointed out though it's an issue that the gameengine
>     developers will need to hammer out.
>
>     Hans Lambermont wrote:
>
>     >Gilbert, Joseph wrote:
>     >
>     >
>     >
>     >>Python.h should always be declared before anything else because
>     it sucks
>     >>in a bunch of standard library headers. I don't know if this is your
>     >>problem or not.  Also I remember that < iostream.h> is not
>     kosher for
>     >>c++. Prob should change this to <iostream>.
>     >>
>     >>#include "Python.h"
>     >>#include <vector>
>     >>#include <iostream>
>     >>
>     >>might be better.
>     >>
>     >>
>     >
>     >Changing iostream.h to iostream does not help :
>     >
>     >g++ -I /usr/local/include/python2.4 a.c
>     >In file included from /usr/include/c++/3.4/ios:48,
>     >                 from /usr/include/c++/3.4/ostream:45,
>     >                 from /usr/include/c++/3.4/iostream:45,
>     >                 from a.c:3:
>     >/usr/include/c++/3.4/bits/localefwd.h:58:34: macro "isspace"
>     passed 2 arguments, but takes just 1
>     >In file included from /usr/include/c++/3.4/ios:48,
>     >                 from /usr/include/c++/3.4/ostream:45,
>     >                 from /usr/include/c++/3.4/iostream:45,
>     >                 from a.c:3:
>     >/usr/include/c++/3.4/bits/localefwd.h:58: error: `std::isspace'
>     declared as an `inline' variable
>     >...
>     >
>     >And changing the include *order* is not easy, these 3 include
>     files are the
>     >result of several other includes. See my earlier posts.
>     >
>     >-- Hans
>     >_______________________________________________
>     >Bf-committers mailing list
>     >Bf-committers at projects.blender.org
>     <mailto:Bf-committers at projects.blender.org>
>     > http://projects.blender.org/mailman/listinfo/bf-committers
>     >
>     >
>
>     _______________________________________________
>     Bf-committers mailing list
>     Bf-committers at projects.blender.org
>     <mailto:Bf-committers at projects.blender.org>
>     http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Bf-committers mailing list
>Bf-committers at projects.blender.org
>http://projects.blender.org/mailman/listinfo/bf-committers
>  
>
Then you need to do an emerge sync and emerge portage on your system...

*  dev-lang/python
      Latest version available: 2.4.1-r1
      Latest version installed: 2.4.1-r1
      Size of downloaded files: 7,663 kB
      Homepage:    http://www.python.org/
      Description: Python is an interpreted, interactive, 
object-orientated programming language.
      License:     PSF-2.2



More information about the Bf-committers mailing list