From 193a2d2b1972c22328952e03fa8233d555a62aa8 Mon Sep 17 00:00:00 2001 From: Bryce Allen Date: Tue, 23 Oct 2018 09:36:07 -0500 Subject: [PATCH] support relocated python installs, closes #127 --- turbine/code/scripts/python-config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/turbine/code/scripts/python-config.py b/turbine/code/scripts/python-config.py index 5c41be5bc..fcd9f0cbb 100644 --- a/turbine/code/scripts/python-config.py +++ b/turbine/code/scripts/python-config.py @@ -31,11 +31,11 @@ def get_lib_name(): def get_config_value(name): if name == 'include-dir': - value = sysconfig.get_config_var('INCLUDEPY') + value = sysconfig.get_paths()['include'] elif name == 'include-flags': - value = '-I' + sysconfig.get_config_var('INCLUDEPY') + value = '-I' + sysconfig.get_paths()['include'] elif name == 'lib-dir': - value = sysconfig.get_config_var('LIBDIR') + value = os.path.join(sysconfig.get_config_var('base'), 'lib') elif name == 'lib-name': value = get_lib_name() elif name == 'lib-flags':