1
1
PKG_NAME = python310
2
- PKG_VERS = 3.10.4
2
+ PKG_VERS = 3.10.5
3
3
PKG_VERS_MAJOR_MINOR = $(word 1,$(subst ., ,$(PKG_VERS ) ) ) .$(word 2,$(subst ., ,$(PKG_VERS ) ) )
4
4
PKG_EXT = tar.xz
5
5
PKG_DIST_NAME = Python-$(PKG_VERS ) .$(PKG_EXT )
@@ -21,7 +21,9 @@ LICENSE = PSF
21
21
GNU_CONFIGURE = 1
22
22
23
23
CONFIGURE_ARGS = --enable-shared
24
+ CONFIGURE_ARGS += --without-static-libpython
24
25
CONFIGURE_ARGS += --enable-ipv6
26
+ # installed pip is not on PATH
25
27
CONFIGURE_ARGS += --without-ensurepip
26
28
CONFIGURE_ARGS += --enable-loadable-sqlite-extensions
27
29
CONFIGURE_ARGS += --with-computed-gotos=yes
@@ -30,18 +32,15 @@ include ../../mk/spksrc.archs.mk
30
32
31
33
# optionally generate optimized code
32
34
ifeq ($(strip $(PYTHON_OPTIMIZE ) ) ,1)
33
-
34
- # old compilers fail with: unrecognized command line option "-fprofile-correction"
35
- ifneq ($(findstring $(ARCH ) ,$(OLD_PPC_ARCHS ) ) ,$(ARCH ) )
36
35
CONFIGURE_ARGS += --enable-optimizations
37
- endif
38
-
39
36
# old compilers fail with unrecognized command line options: -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none
40
- ifneq ($(findstring $(ARCH ) ,$(ARMv5_ARCHS ) $( OLD_PPC_ARCHS ) ) ,$(ARCH ) )
37
+ ifneq ($(findstring $(ARCH ) ,$(OLD_PPC_ARCHS ) ) ,$(ARCH ) )
41
38
# Enable Link-Time Optimization
42
39
CONFIGURE_ARGS += --with-lto
43
40
endif
44
-
41
+ else
42
+ # test modules are required for optimization only
43
+ CONFIGURE_ARGS += --disable-test-modules
45
44
endif
46
45
47
46
ifeq ($(findstring $(ARCH ) ,$(OLD_PPC_ARCHS ) ) ,$(ARCH ) )
@@ -97,8 +96,6 @@ PATH := $(WORK_DIR)/../../../native/$(PKG_NAME)/work-native/install/usr/local/bi
97
96
LD_LIBRARY_PATH := $(WORK_DIR ) /../../../native/$(PKG_NAME ) /work-native/install/usr/local/lib:$(LD_LIBRARY_PATH )
98
97
export PATH LD_LIBRARY_PATH
99
98
100
- ENV += LIBFFI_INCLUDEDIR=$(STAGING_INSTALL_PREFIX ) /include/
101
-
102
99
.PHONY : python310_post_patch
103
100
python310_post_patch :
104
101
$(RUN ) sed -e ' s#@INSTALL_PREFIX@#$(INSTALL_PREFIX)#' -i Lib/mimetypes.py
@@ -133,29 +130,15 @@ python310_post_install: $(WORK_DIR)/python-cc.mk
133
130
cp -R $(HOSTPYTHON_LIB_NATIVE ) $(PYTHON_LIB_CROSS ) /../
134
131
@$(RUN ) $(PYTHON_NATIVE ) -m crossenv $(STAGING_INSTALL_PREFIX ) /bin/python$(PKG_VERS_MAJOR_MINOR ) $(WORK_DIR ) /crossenv/
135
132
. $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) wget https://bootstrap.pypa.io/get-pip.py
136
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-python get-pip.py --no-setuptools --no-wheel
137
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) python get-pip.py --no-setuptools --no-wheel
138
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " setuptools==62.4.0"
139
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " setuptools==62.4.0"
140
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " setuptools-scm==6.4.2"
141
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " setuptools-scm==6.4.2"
142
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " wheel==0.37.1"
143
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " wheel==0.37.1"
144
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " cffi==1.15.0"
145
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " cffi==1.15.0"
146
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " cryptography==3.3.2"
147
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " cryptography==3.3.2"
148
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " poetry==1.1.13"
149
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " poetry==1.1.13"
150
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " Cython==0.29.28"
151
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " Cython==0.29.28"
152
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip install " flit==3.7.1"
153
- . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip install " flit==3.7.1"
133
+ . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-python get-pip.py " pip==22.0.4" --no-setuptools --no-wheel --disable-pip-version-check
134
+ . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) build-pip --disable-pip-version-check install " setuptools==62.4.0" " setuptools-scm==6.4.2" " wheel==0.37.1" " cffi==1.15.0" " cryptography==3.3.2" " poetry==1.1.13" " Cython==0.29.28" " flit==3.7.1"
135
+ . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) python get-pip.py " pip==22.0.4" --no-setuptools --no-wheel --disable-pip-version-check
136
+ . $(WORK_DIR ) /crossenv/bin/activate && $(RUN ) pip --disable-pip-version-check install " setuptools==62.4.0" " setuptools-scm==6.4.2" " wheel==0.37.1" " cffi==1.15.0" " cryptography==3.3.2" " poetry==1.1.13" " Cython==0.29.28" " flit==3.7.1"
154
137
ifneq ($(PYTHON_LIB_NATIVE ) ,$(PYTHON_LIB_CROSS ) )
155
138
cp $(PYTHON_LIB_CROSS)/_sysconfigdata_*.py $(PYTHON_LIB_NATIVE)/_sysconfigdata.py
156
139
endif
157
140
158
- $(WORK_DIR ) /python-cc.mk :
141
+ $(WORK_DIR ) /python-cc.mk :
159
142
@echo HOSTPYTHON=$(HOSTPYTHON ) > $@
160
143
@echo CROSSENV=$(WORK_DIR ) /crossenv/bin/activate >> $@
161
144
@echo HOSTPYTHON_LIB_NATIVE=$(HOSTPYTHON_LIB_NATIVE ) >> $@
0 commit comments