Skip to content

Commit 9ef6f62

Browse files
committed
Tweaked build to ensure macOS directory is rolled out.
1 parent d19f80c commit 9ef6f62

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
256256

257257
# Configure target Python
258258
ifeq ($2,macOS)
259-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
259+
cd $$(PYTHON_DIR-$1) && ./configure \
260260
CC="$$(CC-$1)" LD="$$(CC-$1)" \
261261
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
262262
--without-pymalloc --without-doc-strings --disable-ipv6 --without-ensurepip \
263263
$$(PYTHON_CONFIGURE-$2)
264264
else
265265
cp -f $(PROJECT_DIR)/patch/Python/Setup.embedded $$(PYTHON_DIR-$1)/Modules/Setup.embedded
266-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
266+
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/python/bin:$(PATH) ./configure \
267267
CC="$$(CC-$1)" LD="$$(CC-$1)" \
268268
--host=$$(MACHINE_DETAILED-$1)-apple-ios --build=x86_64-apple-darwin$(shell uname -r) \
269269
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
@@ -317,11 +317,13 @@ clean-$1:
317317

318318
dist/Python-$(PYTHON_VER)-$1-support.b$(BUILD_NUMBER).tar.gz: $$(BZIP2_FRAMEWORK-$1) $$(XZ_FRAMEWORK-$1) $$(OPENSSL_FRAMEWORK-$1) $$(PYTHON_FRAMEWORK-$1)
319319
mkdir -p dist
320+
echo "Python version: $(PYTHON_VERSION) " > build/$1/support.version
321+
echo "Build: $(BUILD_NUMBER)" >> build/$1/support.version
320322
ifeq ($1,macOS)
321-
mv build/$1/Python-$(PYTHON_VERSION)-macosx.x86_64/dist build/$1/python
322-
tar zcvf $$@ -C build/$1 python
323+
cp -r build/$1/Python-$(PYTHON_VERSION)-macosx.x86_64/dist build/$1/python
324+
tar zcvf $$@ -C build/$1 support.version python
323325
else
324-
tar zcvf $$@ -C build/$1 $$(notdir $$^)
326+
tar zcvf $$@ -C build/$1 support.version $$(notdir $$^)
325327
endif
326328

327329
# Build OpenSSL.framework
@@ -397,6 +399,8 @@ build/$1/xz/lib/liblzma.a: $$(foreach target,$$(TARGETS-$1),$$(XZ_DIR-$$(target)
397399
mkdir -p build/$1
398400
xcrun lipo -create -o $$@ $$^
399401

402+
$1: Python.framework-$1
403+
400404
Python.framework-$1: $$(PYTHON_FRAMEWORK-$1)
401405

402406
# Build Python.framework

0 commit comments

Comments
 (0)