mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 01:34:31 +04:00
Merge pull request #9100 from jefferyto/isolate-host-python
python,python3: Better isolate host Python
This commit is contained in:
@@ -306,6 +306,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
|
||||
$(call Host/Compile/Default,python Parser/pgen sharedmods)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user