From: Nathan Binkert Date: Tue, 15 Jun 2010 06:24:45 +0000 (-0700) Subject: build: grab the right library if we're using a debug version of python X-Git-Tag: stable_2012_02_02~1036 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70497d6a18aedb41361a1726a01ced4abd5daabf;p=gem5.git build: grab the right library if we're using a debug version of python --- diff --git a/SConstruct b/SConstruct index 275a3c5d5..d210fc5b9 100644 --- a/SConstruct +++ b/SConstruct @@ -515,7 +515,8 @@ from distutils import sysconfig py_getvar = sysconfig.get_config_var -py_version = 'python' + py_getvar('VERSION') +py_debug = getattr(sys, 'pydebug', False) +py_version = 'python' + py_getvar('VERSION') + (py_debug and "_d" or "") py_general_include = sysconfig.get_python_inc() py_platform_include = sysconfig.get_python_inc(plat_specific=True)