Skip to content

Commit 9506142

Browse files
committed
Merge branch 'main' into 3.10
2 parents b3229c6 + 5f0c652 commit 9506142

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
@@ -911,8 +911,8 @@ os=$1
911911
SDKS-$(os)=$$(sort $$(basename $$(TARGETS-$(os))))
912912

913913
# Predeclare the Python XCFramework files so they can be referenced in SDK targets
914-
PYTHON_XCFRAMEWORK-$(os)=support/$(os)/Python.xcframework
915-
PYTHON_STDLIB-$(os)=support/$(os)/python-stdlib
914+
PYTHON_XCFRAMEWORK-$(os)=support/$(PYTHON_VER)/$(os)/Python.xcframework
915+
PYTHON_STDLIB-$(os)=support/$(PYTHON_VER)/$(os)/python-stdlib
916916

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

10391039
$$(PYTHON_STDLIB-$(os)): \
10401040
$$(PYTHON_XCFRAMEWORK-$(os)) \
@@ -1060,34 +1060,34 @@ $$(PYTHON_STDLIB-$(os)): \
10601060

10611061
dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz: $$(PYTHON_XCFRAMEWORK-$(os)) $$(PYTHON_STDLIB-$(os))
10621062
@echo ">>> Create VERSIONS file for $(os)"
1063-
echo "Python version: $(PYTHON_VERSION) " > support/$(os)/VERSIONS
1064-
echo "Build: $(BUILD_NUMBER)" >> support/$(os)/VERSIONS
1065-
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(os)/VERSIONS
1066-
echo "---------------------" >> support/$(os)/VERSIONS
1063+
echo "Python version: $(PYTHON_VERSION) " > support/$(PYTHON_VER)/$(os)/VERSIONS
1064+
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1065+
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1066+
echo "---------------------" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10671067
ifeq ($(os),macOS)
1068-
echo "libFFI: macOS native" >> support/$(os)/VERSIONS
1068+
echo "libFFI: macOS native" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10691069
else
1070-
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(os)/VERSIONS
1070+
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10711071
endif
1072-
echo "BZip2: $(BZIP2_VERSION)" >> support/$(os)/VERSIONS
1073-
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(os)/VERSIONS
1074-
echo "XZ: $(XZ_VERSION)" >> support/$(os)/VERSIONS
1072+
echo "BZip2: $(BZIP2_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1073+
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
1074+
echo "XZ: $(XZ_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
10751075

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

10851085
@echo ">>> Create final distribution artefact for $(os)"
10861086
mkdir -p dist
10871087
# Build a "full" tarball with all content for test purposes
1088-
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)`
1088+
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)/`
10891089
# Build a distributable tarball
1090-
tar zcvf $$@ -X patch/Python/release.common.exclude -X patch/Python/release.$(os).exclude -C support/$(os) `ls -A support/$(os)`
1090+
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)/`
10911091

10921092
Python-$(os): dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz
10931093

@@ -1100,8 +1100,7 @@ clean-Python-$(os):
11001100
install/$(os)/*/python-$(PYTHON_VER)*.*.log \
11011101
merge/$(os)/*/python-$(PYTHON_VER)* \
11021102
merge/$(os)/*/python-$(PYTHON_VER)*.*.log \
1103-
support/$(os) \
1104-
support/*-$(os).*.log \
1103+
support/$(PYTHON_VER)/$(os) \
11051104
dist/Python-$(PYTHON_VER)-$(os)-*
11061105

11071106
dev-clean-Python-$(os):
@@ -1113,17 +1112,15 @@ dev-clean-Python-$(os):
11131112
install/$(os)/*/python-$(PYTHON_VERSION).*.log \
11141113
merge/$(os)/*/python-$(PYTHON_VERSION) \
11151114
merge/$(os)/*/python-$(PYTHON_VERSION).*.log \
1116-
support/$(os) \
1117-
support/*-$(os).*.log \
1115+
support/$(PYTHON_VER)/$(os) \
11181116
dist/Python-$(PYTHON_VER)-$(os)-*
11191117

11201118
merge-clean-Python-$(os):
11211119
@echo ">>> Partially clean Python build products on $(os) so that merge modifications can be made"
11221120
rm -rf \
11231121
merge/$(os)/*/python-$(PYTHON_VERSION) \
11241122
merge/$(os)/*/python-$(PYTHON_VERSION).*.log \
1125-
support/$(os) \
1126-
support/*-$(os).*.log \
1123+
support/$(PYTHON_VER)/$(os) \
11271124
dist/Python-$(PYTHON_VER)-$(os)-*
11281125

11291126
###########################################################################

0 commit comments

Comments
 (0)