Skip to content

Commit a3e5915

Browse files
samueljohnfreakboy3742
authored andcommitted
Use correct PATH to find macOS Python
When configuring the iOS/watchOS/tvOS Python, the PATH is prepended such that the (host) macOS Python x86_64 binary can be found. But the `$(PROJECT_DIR)/build/macOS/python/bin` is not there yet. It is created only later in the target `dist/Python-$(PYTHON_VER)-$1-support.b$(BUILD_NUMBER).tar.gz`. Until then, the macOS Python is only available in the `$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/` dir. Therefore, this is the correct dir to be used in the PATH var.
1 parent 0f49103 commit a3e5915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ ifeq ($2,macOS)
286286
--without-doc-strings --enable-ipv6 --without-ensurepip \
287287
$$(PYTHON_CONFIGURE-$2)
288288
else
289-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/build/macOS/python/bin:$(PATH) ./configure \
289+
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
290290
CC="$$(CC-$1)" LD="$$(CC-$1)" \
291291
--host=$$(MACHINE_DETAILED-$1)-apple-$(shell echo $2 | tr '[:upper:]' '[:lower:]') \
292292
--build=x86_64-apple-darwin$(shell uname -r) \

0 commit comments

Comments
 (0)