--- balder2d-1.0.orig/SConstruct
+++ balder2d-1.0/SConstruct
@@ -1,5 +1,7 @@
 # SConstruct for building balder2d with scons
-includepath = ['/usr/include/python2.4','include']
+import sys
+
+includepath = ['/usr/include/python%d.%d' % sys.version_info[:2], 'include']
 env = Environment(CPPPATH=includepath)
 #avoid leaving .sconsign files all over the place, put all signatures in:
 env.SConsignFile("scons-signatures")
@@ -10,7 +12,7 @@
 
 import glob
 files = glob.glob("src/*.cpp") + glob.glob("src/*/*.cpp") + glob.glob("src/menu/*/*.cpp")+ glob.glob("src/*/*.c")
-libs = Split('guichan_sdl guichan SDL_image SDL_mixer SDL_gfx python2.4 physfs')
+libs = Split('guichan_sdl guichan SDL SDL_image SDL_mixer SDL_gfx physfs') + ['python%d.%d' % sys.version_info[:2]]
 
 env.ParseConfig('sdl-config --cflags --libs')
 env.Program('bin/balder2d',files, LIBS=libs)
--- balder2d-1.0.orig/bin/scripts/test/SConscript
+++ balder2d-1.0/bin/scripts/test/SConscript
@@ -1,4 +1,5 @@
+import sys
 
-env = Environment(CPPPATH='/usr/include/python2.4')
+env = Environment(CPPPATH='/usr/include/python%d.%d' % sys.version_info[:2])
 
-env.Program('runtests', 'runtests.cpp', LIBS='python2.4')
+env.Program('runtests', 'runtests.cpp', LIBS='python%d.%d' % sys.version_info[:2])
