Skip to content

Commit 8deb896

Browse files
committed
Tweaked build to ensure macOS directory is rolled out.
1 parent 560a15b commit 8deb896

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
218218

219219
# Configure target Python
220220
ifeq ($2,macOS)
221-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
221+
cd $$(PYTHON_DIR-$1) && ./configure \
222222
CC="$$(CC-$1)" LD="$$(CC-$1)" \
223223
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
224224
--without-pymalloc --without-doc-strings --disable-ipv6 --without-ensurepip \
225225
$$(PYTHON_CONFIGURE-$2)
226226
else
227227
cp -f $(PROJECT_DIR)/patch/Python/Setup.embedded $$(PYTHON_DIR-$1)/Modules/Setup.embedded
228-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
228+
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/python/bin:$(PATH) ./configure \
229229
CC="$$(CC-$1)" LD="$$(CC-$1)" \
230230
--host=$$(MACHINE_DETAILED-$1)-apple-ios --build=x86_64-apple-darwin$(shell uname -r) \
231231
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
@@ -278,11 +278,13 @@ clean-$1:
278278

279279
dist/Python-$(PYTHON_VER)-$1-support.b$(BUILD_NUMBER).tar.gz: $$(BZIP2_FRAMEWORK-$1) $$(OPENSSL_FRAMEWORK-$1) $$(PYTHON_FRAMEWORK-$1)
280280
mkdir -p dist
281+
echo "Python version: $(PYTHON_VERSION) " > build/$1/support.version
282+
echo "Build: $(BUILD_NUMBER)" >> build/$1/support.version
281283
ifeq ($1,macOS)
282-
mv build/$1/Python-$(PYTHON_VERSION)-macosx.x86_64/dist build/$1/python
283-
tar zcvf $$@ -C build/$1 python
284+
cp -r build/$1/Python-$(PYTHON_VERSION)-macosx.x86_64/dist build/$1/python
285+
tar zcvf $$@ -C build/$1 support.version python
284286
else
285-
tar zcvf $$@ -C build/$1 $$(notdir $$^)
287+
tar zcvf $$@ -C build/$1 support.version $$(notdir $$^)
286288
endif
287289

288290
# Build OpenSSL.framework

0 commit comments

Comments
 (0)