--- blender/config/linux2-config.py.pythonalut 2006-11-21 07:11:41.000000000 +0100 +++ blender/config/linux2-config.py 2007-01-01 21:48:09.000000000 +0100 @@ -1,11 +1,17 @@ +import os + +def shell_cmd(cmd): + stdin, stdout = os.popen4(cmd) + return stdout.readline().strip() + LCGDIR = '../lib/linux2' LIBDIR = "${LCGDIR}" WITH_BF_VERSE = 'false' BF_VERSE_INCLUDE = "#extern/verse/dist" -BF_PYTHON = '/usr' -BF_PYTHON_VERSION = '2.5' +BF_PYTHON = shell_cmd("python-config --prefix") +BF_PYTHON_VERSION = shell_cmd("python -c \"import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION')\"") BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}' BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}' BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'