[Bf-committers] [Patch]Fix issue to build blender-2.56 with python-3.2 Beta 2

2011-01-18 Thread Jochen Schmitt

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo,

I have tried to build blender-2.56 agains the Beta 2 of python-3.2
which you may find in the rawhide repsitory of Fedora.

to get the build working, I have create the following patch:

diff -up
blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp.py32
blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp
- ---
blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp.py32

2011-01-16 22:44:18.70680 +0100
+++
blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp  
 
 
2011-01-16 22:44:54.668810004 +0100
@@ -408,7 +408,7 @@ void SCA_PythonController::Trigger(SCA_L
 */
 
excdict= PyDict_Copy(m_pythondictionary);
- -   resultobj = PyEval_EvalCode((PyCodeObject*)m_bytecode,
excdict, excdict);
+   resultobj = PyEval_EvalCode((PyObject*)m_bytecode,
excdict, excdict);
/* PyRun_SimpleString(m_scriptText.Ptr()); */
break;


Best Regards:

Jochen Schmitt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iJwEAQECAAYFAk01/rUACgkQZLAIBz9lVu8zewQAqTk3PDjcwgRNd0b8Ms8HtN1a
KiKBVm9XI6c/R2FUNHTkeyntYvJOgUCEGAGNmsyZQOEWLq8u44hbaxo8aDqt6Kj8
oF8HgHv/Pxvqv3yktyahDxi7oGAxsBGv/eYMMgeRJaHPiMZUYikO/g79+qc8yTXw
uRo8KzUugr5y5DSHoK8=
=IEtB
-END PGP SIGNATURE-

___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] [Patch]Fix issue to build blender-2.56 with python-3.2 Beta 2

2011-01-18 Thread Campbell Barton
Needed to made a few other changes for 3.2 support, committed r34392.

On Tue, Jan 18, 2011 at 8:57 PM, Jochen Schmitt joc...@herr-schmitt.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hallo,

 I have tried to build blender-2.56 agains the Beta 2 of python-3.2
 which you may find in the rawhide repsitory of Fedora.

 to get the build working, I have create the following patch:

 diff -up
 blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp.py32
 blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp
 - ---
 blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp.py32

 2011-01-16 22:44:18.70680 +0100
 +++
 blender-2.56-beta-source/source/gameengine/GameLogic/SCA_PythonController.cpp


 2011-01-16 22:44:54.668810004 +0100
 @@ -408,7 +408,7 @@ void SCA_PythonController::Trigger(SCA_L
                 */

                excdict= PyDict_Copy(m_pythondictionary);
 - -               resultobj = PyEval_EvalCode((PyCodeObject*)m_bytecode,
 excdict, excdict);
 +               resultobj = PyEval_EvalCode((PyObject*)m_bytecode,
 excdict, excdict);
                /* PyRun_SimpleString(m_scriptText.Ptr()); */
                break;


 Best Regards:

 Jochen Schmitt
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

 iJwEAQECAAYFAk01/rUACgkQZLAIBz9lVu8zewQAqTk3PDjcwgRNd0b8Ms8HtN1a
 KiKBVm9XI6c/R2FUNHTkeyntYvJOgUCEGAGNmsyZQOEWLq8u44hbaxo8aDqt6Kj8
 oF8HgHv/Pxvqv3yktyahDxi7oGAxsBGv/eYMMgeRJaHPiMZUYikO/g79+qc8yTXw
 uRo8KzUugr5y5DSHoK8=
 =IEtB
 -END PGP SIGNATURE-

 ___
 Bf-committers mailing list
 Bf-committers@blender.org
 http://lists.blender.org/mailman/listinfo/bf-committers




-- 
- Campbell
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers