Skip to content

Commit 37fd2ae

Browse files
committed
Merge branch 'main' into 3.11
2 parents 7d1e80f + 5f0c652 commit 37fd2ae

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

Makefile

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ os=$1
913913
SDKS-$(os)=$$(sort $$(basename $$(TARGETS-$(os))))
914914

915915
# Predeclare the Python XCFramework files so they can be referenced in SDK targets
916-
PYTHON_XCFRAMEWORK-$(os)=support/$(os)/Python.xcframework
917-
PYTHON_STDLIB-$(os)=support/$(os)/python-stdlib
916+
PYTHON_XCFRAMEWORK-$(os)=support/$(PYTHON_VER)/$(os)/Python.xcframework
917+
PYTHON_STDLIB-$(os)=support/$(PYTHON_VER)/$(os)/python-stdlib
918918

919919
# Expand the build-sdk macro for all the sdks on this OS (e.g., iphoneos, iphonesimulator)
920920
$$(foreach sdk,$$(SDKS-$(os)),$$(eval $$(call build-sdk,$$(sdk),$(os))))
@@ -1036,7 +1036,7 @@ $$(PYTHON_XCFRAMEWORK-$(os)): \
10361036
mkdir -p $$(dir $$(PYTHON_XCFRAMEWORK-$(os)))
10371037
xcodebuild -create-xcframework \
10381038
-output $$@ $$(foreach sdk,$$(SDKS-$(os)),-library $$(PYTHON_FATLIB-$$(sdk)) -headers $$(PYTHON_FATINCLUDE-$$(sdk))) \
1039-
2>&1 | tee -a support/python-$(os).xcframework.log
1039+
2>&1 | tee -a support/$(PYTHON_VER)/python-$(os).xcframework.log
10401040

10411041
$$(PYTHON_STDLIB-$(os)): \
10421042
$$(PYTHON_XCFRAMEWORK-$(os)) \
@@ -1062,34 +1062,34 @@ $$(PYTHON_STDLIB-$(os)): \
10621062

10631063
dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz: $$(PYTHON_XCFRAMEWORK-$(os)) $$(PYTHON_STDLIB-$(os))
10641064
@echo ">>> Create VERSIONS file for $(os)"
1065-
echo "Python version: $(PYTHON_VERSION) " > support/$(os)/VERSIONS
1066-
echo "Build: $(BUILD_NUMBER)" >> support/$(os)/VERSIONS
1067-
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(os)/VERSIONS
1068-
echo "---------------------" >> support/$(os)/VERSIONS
1065+
echo "Python version: $(PYTHON_VERSION) " > support/$(PYTHON_VER)/$(os)/VERSIONS
1066+
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1067+
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1068+
echo "---------------------" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10691069
ifeq ($(os),macOS)
1070-
echo "libFFI: macOS native" >> support/$(os)/VERSIONS
1070+
echo "libFFI: macOS native" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10711071
else
1072-
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(os)/VERSIONS
1072+
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10731073
endif
1074-
echo "BZip2: $(BZIP2_VERSION)" >> support/$(os)/VERSIONS
1075-
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(os)/VERSIONS
1076-
echo "XZ: $(XZ_VERSION)" >> support/$(os)/VERSIONS
1074+
echo "BZip2: $(BZIP2_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1075+
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1076+
echo "XZ: $(XZ_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10771077

10781078
ifneq ($(os),macOS)
10791079
@echo ">>> Create cross-platform site sitecustomize.py for $(os)"
1080-
mkdir -p support/$(os)/platform-site
1080+
mkdir -p support/$(PYTHON_VER)/$(os)/platform-site
10811081
cat $(PROJECT_DIR)/patch/Python/sitecustomize.py \
10821082
| sed -e "s/{{os}}/$(os)/g" \
10831083
| sed -e "s/{{tag}}/$$(shell echo $(os) | tr '[:upper:]' '[:lower:]')_$$(shell echo $$(VERSION_MIN-$(os)) | sed "s/\./_/g")/g" \
1084-
> support/$(os)/platform-site/sitecustomize.py
1084+
> support/$(PYTHON_VER)/$(os)/platform-site/sitecustomize.py
10851085
endif
10861086

10871087
@echo ">>> Create final distribution artefact for $(os)"
10881088
mkdir -p dist
10891089
# Build a "full" tarball with all content for test purposes
1090-
tar zcvf dist/Python-$(PYTHON_VER)-$(os)-support.test-$(BUILD_NUMBER).tar.gz -X patch/Python/test.exclude -C support/$(os) `ls -A support/$(os)`
1090+
tar zcvf dist/Python-$(PYTHON_VER)-$(os)-support.test-$(BUILD_NUMBER).tar.gz -X patch/Python/test.exclude -C support/$(PYTHON_VER)/$(os) `ls -A support/$(PYTHON_VER)/$(os)/`
10911091
# Build a distributable tarball
1092-
tar zcvf $$@ -X patch/Python/release.common.exclude -X patch/Python/release.$(os).exclude -C support/$(os) `ls -A support/$(os)`
1092+
tar zcvf $$@ -X patch/Python/release.common.exclude -X patch/Python/release.$(os).exclude -C support/$(PYTHON_VER)/$(os) `ls -A support/$(PYTHON_VER)/$(os)/`
10931093

10941094
Python-$(os): dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz
10951095

@@ -1102,8 +1102,7 @@ clean-Python-$(os):
11021102
install/$(os)/*/python-$(PYTHON_VER)*.*.log \
11031103
merge/$(os)/*/python-$(PYTHON_VER)* \
11041104
merge/$(os)/*/python-$(PYTHON_VER)*.*.log \
1105-
support/$(os) \
1106-
support/*-$(os).*.log \
1105+
support/$(PYTHON_VER)/$(os) \
11071106
dist/Python-$(PYTHON_VER)-$(os)-*
11081107

11091108
dev-clean-Python-$(os):
@@ -1115,17 +1114,15 @@ dev-clean-Python-$(os):
11151114
install/$(os)/*/python-$(PYTHON_VERSION).*.log \
11161115
merge/$(os)/*/python-$(PYTHON_VERSION) \
11171116
merge/$(os)/*/python-$(PYTHON_VERSION).*.log \
1118-
support/$(os) \
1119-
support/*-$(os).*.log \
1117+
support/$(PYTHON_VER)/$(os) \
11201118
dist/Python-$(PYTHON_VER)-$(os)-*
11211119

11221120
merge-clean-Python-$(os):
11231121
@echo ">>> Partially clean Python build products on $(os) so that merge modifications can be made"
11241122
rm -rf \
11251123
merge/$(os)/*/python-$(PYTHON_VERSION) \
11261124
merge/$(os)/*/python-$(PYTHON_VERSION).*.log \
1127-
support/$(os) \
1128-
support/*-$(os).*.log \
1125+
support/$(PYTHON_VER)/$(os) \
11291126
dist/Python-$(PYTHON_VER)-$(os)-*
11301127

11311128
###########################################################################

0 commit comments

Comments
 (0)