Merge pull request #9100 from jefferyto/isolate-host-python

python,python3: Better isolate host Python
This commit is contained in:
Rosen Penev
2019-06-03 02:11:20 -07:00
committed by GitHub
6 changed files with 30 additions and 22 deletions

View File

@@ -300,6 +300,11 @@ HOST_CONFIGURE_ARGS+= \
--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