mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Preserve include path name
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user