@@ -256,14 +256,14 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
256
256
257
257
# Configure target Python
258
258
ifeq ($2,macOS)
259
- cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
259
+ cd $$(PYTHON_DIR-$1) && ./configure \
260
260
CC="$$(CC-$1)" LD="$$(CC-$1)" \
261
261
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
262
262
--without-pymalloc --without-doc-strings --disable-ipv6 --without-ensurepip \
263
263
$$(PYTHON_CONFIGURE-$2)
264
264
else
265
265
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 \
267
267
CC="$$(CC-$1)" LD="$$(CC-$1)" \
268
268
--host=$$(MACHINE_DETAILED-$1)-apple-ios --build=x86_64-apple-darwin$(shell uname -r) \
269
269
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
@@ -317,11 +317,13 @@ clean-$1:
317
317
318
318
dist/Python-$(PYTHON_VER ) -$1-support.b$(BUILD_NUMBER ) .tar.gz: $$(BZIP2_FRAMEWORK-$1 ) $$(XZ_FRAMEWORK-$1 ) $$(OPENSSL_FRAMEWORK-$1 ) $$(PYTHON_FRAMEWORK-$1 )
319
319
mkdir -p dist
320
+ echo "Python version: $(PYTHON_VERSION ) " > build/$1/support.version
321
+ echo "Build: $(BUILD_NUMBER ) " >> build/$1/support.version
320
322
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
323
325
else
324
- tar zcvf $$@ -C build/$1 $$(notdir $$^)
326
+ tar zcvf $$@ -C build/$1 support.version $$(notdir $$^)
325
327
endif
326
328
327
329
# Build OpenSSL.framework
@@ -397,6 +399,8 @@ build/$1/xz/lib/liblzma.a: $$(foreach target,$$(TARGETS-$1),$$(XZ_DIR-$$(target)
397
399
mkdir -p build/$1
398
400
xcrun lipo -create -o $$@ $$^
399
401
402
+ $1: Python.framework-$1
403
+
400
404
Python.framework-$1: $$(PYTHON_FRAMEWORK-$1 )
401
405
402
406
# Build Python.framework
0 commit comments