From cf93cad415e6b4f3952220c69977f74d29fb6533 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 May 2009 21:41:14 +0000 Subject: 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 --- config/linux2-config.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config') 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}' -- cgit v1.2.3