diff options
Diffstat (limited to 'tools/depends/native/python3')
-rw-r--r-- | tools/depends/native/python3/01-distutil-flags.patch | 2 | ||||
-rw-r--r-- | tools/depends/native/python3/Makefile | 12 | ||||
-rw-r--r-- | tools/depends/native/python3/PYTHON3-VERSION | 7 |
3 files changed, 13 insertions, 8 deletions
diff --git a/tools/depends/native/python3/01-distutil-flags.patch b/tools/depends/native/python3/01-distutil-flags.patch index fe83ebe333..28cd2f98ba 100644 --- a/tools/depends/native/python3/01-distutil-flags.patch +++ b/tools/depends/native/python3/01-distutil-flags.patch @@ -1,6 +1,6 @@ --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py -@@ -190,6 +190,9 @@ +@@ -214,6 +214,9 @@ (cc, cxx, cflags, ccshared, ldshared, shlib_suffix, ar, ar_flags) = \ get_config_vars('CC', 'CXX', 'CFLAGS', 'CCSHARED', 'LDSHARED', 'SHLIB_SUFFIX', 'AR', 'ARFLAGS') 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 $@ diff --git a/tools/depends/native/python3/PYTHON3-VERSION b/tools/depends/native/python3/PYTHON3-VERSION index 5ebe12a1ab..35188cbe3d 100644 --- a/tools/depends/native/python3/PYTHON3-VERSION +++ b/tools/depends/native/python3/PYTHON3-VERSION @@ -1,5 +1,4 @@ LIBNAME=Python -VERSION=3.9.14 -SOURCE=$(LIBNAME)-$(VERSION) -ARCHIVE=$(SOURCE).tar.xz -SHA512=691a7814cf6c7bee96d8dbb7c5c85cb11f2e999101e20491b99435cdec07c3bbd5ce43ad3d9c64f695383b79197884caa1965c4346e4525e23b09c686271e4ab +VERSION=3.11.0 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.xz +SHA512=314eef88ae0d68760f34d7a32f238fd2ecb27c50963baa7357c42ad8159026ec50229a0b31d83c39710a472904a06422afc082f9658a90a1dc83ccb74c08039d |