@@ -18,7 +18,7 @@ BUILD_NUMBER=custom
1818# of a release cycle, as official binaries won't be published.
1919# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
2020# PYTHON_VER is the major/minor version (e.g., 3.10)
21- PYTHON_VERSION =3.9.20
21+ PYTHON_VERSION =3.9.21
2222PYTHON_PKG_VERSION =3.9.13
2323PYTHON_MICRO_VERSION =$(shell echo $(PYTHON_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
2424PYTHON_PKG_MICRO_VERSION =$(shell echo $(PYTHON_PKG_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
@@ -289,6 +289,9 @@ $$(PYTHON_LIB-$(target)): $$(PYTHON_SRCDIR-$(target))/python.exe
289289 make install \
290290 2>&1 | tee -a ../python-$(PYTHON_VERSION ) .install.log
291291
292+ # Remove any .orig files produced by the compliance patching process
293+ find $$(PYTHON_INSTALL-$(target)) -name "*.orig" -exec rm {} \;
294+
292295endif
293296
294297PYTHON_SITECUSTOMIZE-$(target ) =$(PROJECT_DIR ) /support/$(PYTHON_VER ) /$(os ) /platform-site/$(target ) /sitecustomize.py
@@ -520,6 +523,9 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
520523 # Apply the App Store compliance patch
521524 # patch --strip 2 --directory $$(PYTHON_INSTALL_VERSION-macosx)/lib/python$(PYTHON_VER) --input $(PROJECT_DIR)/patch/Python/app-store-compliance.patch
522525
526+ # Remove any .orig files produced by the patching process
527+ find $$(PYTHON_INSTALL_VERSION-macosx) -name "*.orig" -exec rm {} \;
528+
523529 # Rewrite the framework to make it standalone
524530 patch/make-relocatable.sh $$(PYTHON_INSTALL_VERSION-macosx) 2>&1 > /dev/null
525531
@@ -573,6 +579,11 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
573579 @echo ">>> Create helper links in XCframework for $(os)"
574580 $$(foreach sdk,$$(SDKS-$(os)),ln -si $$(SDK_SLICE-$$(sdk)) $$(PYTHON_XCFRAMEWORK-$(os))/$$(sdk); )
575581
582+ ifeq ($(os ) ,iOS)
583+ @echo ">>> Clone testbed project for $(os)"
584+ $(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/iOS/testbed clone --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
585+ endif
586+
576587 @echo ">>> Create VERSIONS file for $(os)"
577588 echo "Python version: $(PYTHON_VERSION) " > support/$(PYTHON_VER)/$(os)/VERSIONS
578589 echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
0 commit comments