@@ -218,14 +218,14 @@ $$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST
218
218
219
219
# Configure target Python
220
220
ifeq ($2,macOS)
221
- cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) ./configure \
221
+ cd $$(PYTHON_DIR-$1) && ./configure \
222
222
CC="$$(CC-$1)" LD="$$(CC-$1)" \
223
223
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
224
224
--without-pymalloc --without-doc-strings --disable-ipv6 --without-ensurepip \
225
225
$$(PYTHON_CONFIGURE-$2)
226
226
else
227
227
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 \
229
229
CC="$$(CC-$1)" LD="$$(CC-$1)" \
230
230
--host=$$(MACHINE_DETAILED-$1)-apple-ios --build=x86_64-apple-darwin$(shell uname -r) \
231
231
--prefix=$(PROJECT_DIR)/$$(PYTHON_DIR-$1)/dist \
@@ -278,11 +278,13 @@ clean-$1:
278
278
279
279
dist/Python-$(PYTHON_VER ) -$1-support.b$(BUILD_NUMBER ) .tar.gz: $$(BZIP2_FRAMEWORK-$1 ) $$(OPENSSL_FRAMEWORK-$1 ) $$(PYTHON_FRAMEWORK-$1 )
280
280
mkdir -p dist
281
+ echo "Python version: $(PYTHON_VERSION ) " > build/$1/support.version
282
+ echo "Build: $(BUILD_NUMBER ) " >> build/$1/support.version
281
283
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
284
286
else
285
- tar zcvf $$@ -C build/$1 $$(notdir $$^)
287
+ tar zcvf $$@ -C build/$1 support.version $$(notdir $$^)
286
288
endif
287
289
288
290
# Build OpenSSL.framework
0 commit comments