From 3ce194736f1e3732993af6d88b878f76c1c88213 Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Fri, 18 Sep 2020 13:01:35 +0200 Subject: [PATCH] Preserve include path name --- python_appimage/appimage/relocate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python_appimage/appimage/relocate.py b/python_appimage/appimage/relocate.py index cf39ea5..c7f8939 100644 --- a/python_appimage/appimage/relocate.py +++ b/python_appimage/appimage/relocate.py @@ -142,8 +142,6 @@ def relocate_python(python=None, appdir=None): HOST_PREFIX = sys.prefix HOST_BIN = HOST_PREFIX + '/bin' HOST_INC = HOST_PREFIX + '/include/' + PYTHON_X_Y - if not os.path.exists(HOST_INC): - HOST_INC += 'm' HOST_LIB = HOST_PREFIX + '/lib' HOST_PKG = HOST_LIB + '/' + PYTHON_X_Y @@ -153,6 +151,10 @@ def relocate_python(python=None, appdir=None): PYTHON_LIB = PYTHON_PREFIX + '/lib' PYTHON_PKG = PYTHON_LIB + '/' + PYTHON_X_Y + if not os.path.exists(HOST_INC): + HOST_INC += 'm' + PYTHON_INC += 'm' + # Copy the running Python's install log('CLONE', '%s from %s', PYTHON_X_Y, HOST_PREFIX)