Python3: ensure libs are found correctly (from Python2)

Without this patch, Python3:host will not find the zlib module,
causing setuptools to fail due to missing zlib compression support.
This commit is contained in:
MilhouseVH
2019-10-24 22:51:28 +01:00
parent bf94c8fb81
commit 2c4031e2b2
2 changed files with 68 additions and 0 deletions
+4
View File
@@ -83,6 +83,8 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_prog_HAS_HG=/bin/false
"
pre_configure_host() {
export PYTHON_MODULES_INCLUDE="$HOST_INCDIR"
export PYTHON_MODULES_LIB="$HOST_LIBDIR"
export DISABLED_EXTENSIONS="readline _curses _curses_panel $PKG_PY_DISABLED_MODULES"
}
@@ -104,6 +106,8 @@ post_makeinstall_host() {
}
pre_configure_target() {
export PYTHON_MODULES_INCLUDE="$TARGET_INCDIR"
export PYTHON_MODULES_LIB="$TARGET_LIBDIR"
export DISABLED_EXTENSIONS="$PKG_PY_DISABLED_MODULES"
}