Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-07 01:41:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-07 01:41:14 +0400
commitcf93cad415e6b4f3952220c69977f74d29fb6533 (patch)
tree1feacc6898dfdecf460053ce2c220e18fd29c858
parent94e9e954b1ce5395a66b1f66d3fdc1818fe96a6c (diff)
use the python version scons is running with by default on linux, will make it easier for people with new distros that only come with python 2.6
-rw-r--r--config/linux2-config.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/linux2-config.py b/config/linux2-config.py
index c1b9d7d2ebd..22210f0218d 100644
--- a/config/linux2-config.py
+++ b/config/linux2-config.py
@@ -4,8 +4,16 @@ LIBDIR = "${LCGDIR}"
WITH_BF_VERSE = False
BF_VERSE_INCLUDE = "#extern/verse/dist"
+def py_version_string():
+ '''
+ returns py version - "2.5", "2.6" etc
+ '''
+ import platform
+ ver = platform.python_version_tuple()
+ return '%d.%d' % (ver[0], ver[1])
+
BF_PYTHON = '/usr'
-BF_PYTHON_VERSION = '2.5'
+BF_PYTHON_VERSION = get_py_version_string()
WITH_BF_STATICPYTHON = False
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'