From 3c8bcae56b27be3c664e5ef34b94e959dbb7c06e Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Tue, 21 Aug 2018 11:29:36 -0400 Subject: [PATCH] Don't include full paths in sysconfigdata --- cpython/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpython/Makefile b/cpython/Makefile index dc1a4e3b3..b6c0e613b 100644 --- a/cpython/Makefile +++ b/cpython/Makefile @@ -25,7 +25,8 @@ $(INSTALL)/lib/$(LIB): $(BUILD)/$(LIB) touch $(BUILD)/$(LIB) ; \ emmake make HOSTPYTHON=$(HOSTPYTHON) PYTHON_FOR_BUILD=$(HOSTPYTHON) CROSS_COMPILE=yes inclinstall libinstall $(LIB) && \ cp $(LIB) $(INSTALL)/lib/ && \ - cp $(HOSTINSTALL)/lib/python$(PYMINOR)/`$(HOSTPYTHON) -c "import sysconfig; print(sysconfig._get_sysconfigdata_name())"`.py $(INSTALL)/lib/python$(PYMINOR)/_sysconfigdata__emscripten_.py \ + cp $(HOSTINSTALL)/lib/python$(PYMINOR)/`$(HOSTPYTHON) -c "import sysconfig; print(sysconfig._get_sysconfigdata_name())"`.py $(INSTALL)/lib/python$(PYMINOR)/_sysconfigdata__emscripten_.py; \ + sed -i -e 's#'"$(PYODIDE_ROOT)"'##g' $(INSTALL)/lib/python$(PYMINOR)/_sysconfigdata__emscripten_.py; \ )