@@ -88,13 +88,13 @@ update-patch:
8888 # comparing between the current state of the 3.X branch against the v3.X.Y
8989 # tag associated with the release being built. This allows you to
9090 # maintain a branch that contains custom patches against the default Python.
91- # The patch archived in this respository is based on github.com/freakboy3742/cpython
91+ # The patch archived in this repository is based on github.com/freakboy3742/cpython
9292 # Requires patchutils (installable via `brew install patchutils`); this
9393 # also means we need to re-introduce homebrew to the path for the filterdiff
9494 # call
9595 if [ -z " $( PYTHON_REPO_DIR) " ]; then echo " \n\nPYTHON_REPO_DIR must be set to the root of your Python github checkout\n\n" ; fi
9696 cd $(PYTHON_REPO_DIR ) && \
97- git diff -D v$(PYTHON_VERSION ) $(PYTHON_VER ) -patched \
97+ git diff --no-renames - D v$(PYTHON_VERSION ) $(PYTHON_VER ) -patched \
9898 | PATH=" /usr/local/bin:/opt/homebrew/bin:$( PATH) " filterdiff \
9999 -X $(PROJECT_DIR ) /patch/Python/diff.exclude -p 1 --clean \
100100 > $(PROJECT_DIR ) /patch/Python/Python.patch
@@ -136,10 +136,10 @@ ARCH-$(target)=$$(subst .,,$$(suffix $(target)))
136136
137137ifneq ($(os ) ,macOS)
138138 ifeq ($$(findstring simulator,$$(SDK-$(target))),)
139- TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(OS_LOWER -$(target ) )$$(VERSION_MIN-$(os ) )
139+ TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(TRIPLE_OS -$(os ) )$$(VERSION_MIN-$(os ) )
140140IS_SIMULATOR-$(target) =False
141141 else
142- TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(OS_LOWER -$(target ) )$$(VERSION_MIN-$(os ) ) -simulator
142+ TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(TRIPLE_OS -$(os ) )$$(VERSION_MIN-$(os ) ) -simulator
143143IS_SIMULATOR-$(target) =True
144144 endif
145145endif
@@ -331,7 +331,7 @@ $$(PYTHON_LIB-$(target)): $$(PYTHON_SRCDIR-$(target))/python.exe
331331
332332
333333$$(PYTHON_PLATFORM_SITECUSTOMIZE-$(target ) ) :
334- @echo " >>> Create cross-plaform config for $( target) "
334+ @echo " >>> Create cross-platform config for $( target) "
335335 mkdir -p $$(PYTHON_PLATFORM_CONFIG-$(target ) )
336336 # Create the cross-platform site definition
337337 echo " import _cross_$$ (ARCH-$( target) )_$$ (SDK-$( target) ); import _cross_venv;" \
@@ -405,15 +405,13 @@ define build-sdk
405405sdk=$1
406406os=$2
407407
408- OS_LOWER-$(sdk ) =$(shell echo $(os ) | tr '[:upper:]' '[:lower:]')
409-
410408SDK_TARGETS-$(sdk ) =$$(filter $(sdk ) .% ,$$(TARGETS-$(os ) ) )
411409SDK_ARCHES-$(sdk ) =$$(sort $$(subst .,,$$(suffix $$(SDK_TARGETS-$(sdk ) ) ) ) )
412410
413411ifeq ($$(findstring simulator,$(sdk ) ) ,)
414- SDK_SLICE-$(sdk) =$$(OS_LOWER -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g")
412+ SDK_SLICE-$(sdk) =$$(TRIPLE_OS -$(os ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g")
415413else
416- SDK_SLICE-$(sdk) =$$(OS_LOWER -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g") -simulator
414+ SDK_SLICE-$(sdk) =$$(TRIPLE_OS -$(os ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g") -simulator
417415endif
418416
419417# Expand the build-target macro for target on this OS
@@ -667,7 +665,7 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
667665 # Create symlink for dylib
668666 $$(foreach sdk,$$(SDKS-$(os)),ln -si ../Python.framework/Python $$(PYTHON_XCFRAMEWORK-$(os))/$$(SDK_SLICE-$$(sdk))/lib/libpython$(PYTHON_VER).dylib; )
669667
670- ifeq (filter( $(os ) ,iOS tvOS watchOS), $(os ) )
668+ ifeq ($( filter $(os ) ,iOS tvOS) , $(os ) )
671669 @echo ">>> Clone testbed project for $(os)"
672670 $(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/Apple/testbed clone --platform $(os) --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
673671endif
0 commit comments