diff options
Diffstat (limited to 'tools/depends/native/python3/Makefile')
-rw-r--r-- | tools/depends/native/python3/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/depends/native/python3/Makefile b/tools/depends/native/python3/Makefile index d46ec62e9b..672f778c3d 100644 --- a/tools/depends/native/python3/Makefile +++ b/tools/depends/native/python3/Makefile @@ -3,10 +3,14 @@ PLATFORM=$(NATIVEPLATFORM) DEPS = ../../Makefile.include Makefile PYTHON3-VERSION ../../download-files.include \ 01-distutil-flags.patch -CWD=$(shell pwd) -HOSTPYTHONDIR=$(CWD)/$(PLATFORM)/hostpython +CONFIGURE=./configure --prefix=$(NATIVEPREFIX) \ + --disable-shared \ + --disable-framework \ + --without-pymalloc \ + --with-system-ffi + +NATIVE_SITEPACKAGES=$(NATIVEPREFIX)/lib/python$(PYTHON_VERSION)/site-packages -CONFIGURE=./configure --prefix=$(NATIVEPREFIX) --disable-shared --disable-framework --without-pymalloc --with-system-ffi ifeq ($(OS),linux) CONFIGURE += --with-system-expat endif @@ -30,6 +34,8 @@ $(LIBDYLIB): $(PLATFORM) .installed-$(PLATFORM): $(LIBDYLIB) cd $(PLATFORM); patch -p1 -i ../01-distutil-flags.patch cd $(PLATFORM); $(MAKE) install +# Sed patch setuptools that is installed via ensurepip as we cant patch the source + cd $(NATIVE_SITEPACKAGES); sed -ie "s|cflags = cflags + ' ' + os.environ\['CFLAGS'\]|cflags = os.environ\['CFLAGS'\]|" setuptools/_distutils/sysconfig.py touch $(LIBDYLIB) touch $@ |