diff build/freebsd6-config-dist.py @ 175:ea04dfe54aae

* Buildscripts have been modified to work with different python versions. This applys only to linux/freebsd/darwin. For windows the only supported python version remains 2.5.x. On linux/freebsd/darwin 2.5 and 2.6 should work.
author nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 25 Jan 2009 19:07:57 +0000
parents 4a0efb7baf70
children 06dddc96ce54
line wrap: on
line diff
--- a/build/freebsd6-config-dist.py	Sun Jan 25 12:49:27 2009 +0000
+++ b/build/freebsd6-config-dist.py	Sun Jan 25 19:07:57 2009 +0000
@@ -4,6 +4,7 @@
 # boost_filesystem & boost_regex
 # vorbisfile
 # openal
+import sys
 
 def initEnvironment(env):
 	return env
@@ -26,6 +27,5 @@
 		context.env.Append(CPPPATH = ['/usr/local/include'])
 		context.env.Append(LIBPATH = ['/usr/local/lib'])
 		context.checkSimpleLib(['guichan_opengl'])
-
         # For swig/python:
-        context.env.Append(CPPPATH = ['/usr/local/include/python2.5'])
+        context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]])