python3 compatibility for the BGE api, this only works with scons when WITH_BF_NOBLENDER is enabled.

Mathutils, Geometry and BGL modules are currently disabled with python3
This commit is contained in:
2009-05-07 05:23:15 +00:00
parent c46fa2745a
commit 779bf435ef
7 changed files with 53 additions and 42 deletions

View File

@@ -30,4 +30,6 @@ if env['WITH_BF_FFMPEG']:
if env['BF_BUILDINFO']:
defs.append('NAN_BUILDINFO')
env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )
# A bit dodgy but disable building with python3
if not env['BF_PYTHON_VERSION'].startswith('3'):
env.BlenderLib ( libname='blender_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype=['core','game2'], priority = [60,115] )