python,python3: Better isolate host Python
--prefix=$(HOST_PYTHON_DIR) \
--exec-prefix=$(HOST_PYTHON_DIR) \
--with-system-expat=$(STAGING_DIR_HOSTPKG) \
- --with-ensurepip=install \
+ --with-ensurepip=upgrade \
CONFIG_SITE=
+ define Host/Configure
+ $(SED) 's/^ENABLE_USER_SITE = None$$$$/ENABLE_USER_SITE = False/' $(HOST_BUILD_DIR)/Lib/site.py
+ $(call Host/Configure/Default)
+ endef
+
define Host/Compile
$(call Host/Compile/Default,python Parser/pgen sharedmods)
endef
--prefix=$(HOST_PYTHON3_DIR) \
--exec-prefix=$(HOST_PYTHON3_DIR) \
--with-system-expat=$(STAGING_DIR_HOSTPKG) \
- --with-ensurepip=install \
+ --with-ensurepip=upgrade \
CONFIG_SITE=
+ define Host/Configure
+ $(SED) 's/^ENABLE_USER_SITE = None$$$$/ENABLE_USER_SITE = False/' $(HOST_BUILD_DIR)/Lib/site.py
+ $(call Host/Configure/Default)
+ endef
+
define Host/Compile
+$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) python Parser/pgen
+$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) sharedmods