build: grab the right library if we're using a debug version of python
This commit is contained in:
parent
dd133c7b24
commit
70497d6a18
1 changed files with 2 additions and 1 deletions
|
@ -515,7 +515,8 @@ from distutils import sysconfig
|
||||||
|
|
||||||
py_getvar = sysconfig.get_config_var
|
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_general_include = sysconfig.get_python_inc()
|
||||||
py_platform_include = sysconfig.get_python_inc(plat_specific=True)
|
py_platform_include = sysconfig.get_python_inc(plat_specific=True)
|
||||||
|
|
Loading…
Reference in a new issue