@@ -14,19 +14,22 @@ BUILD_NUMBER=custom
14
14
# Version of packages that will be compiled by this meta-package
15
15
# PYTHON_VERSION is the full version number (e.g., 3.10.0b3)
16
16
# PYTHON_PKG_VERSION is the version number with binary package releases to use
17
+ # for macOS binaries. This will be less than PYTHON_VERSION towards the end
18
+ # of a release cycle, as official binaries won't be published.
17
19
# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
18
20
# PYTHON_VER is the major/minor version (e.g., 3.10)
19
21
PYTHON_VERSION =3.9.19
20
22
PYTHON_PKG_VERSION =3.9.13
21
23
PYTHON_MICRO_VERSION =$(shell echo $(PYTHON_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
24
+ PYTHON_PKG_MICRO_VERSION =$(shell echo $(PYTHON_PKG_VERSION ) | grep -Eo "\d+\.\d+\.\d+")
22
25
PYTHON_VER =$(basename $(PYTHON_VERSION ) )
23
26
24
27
# The binary releases of dependencies, published at:
25
28
# https://github.com/beeware/cpython-apple-source-deps/releases
26
29
BZIP2_VERSION =1.0.8-1
30
+ LIBFFI_VERSION =3.4.6-1
27
31
OPENSSL_VERSION =3.0.14-1
28
32
XZ_VERSION =5.4.7-1
29
- LIBFFI_VERSION =3.4.6-1
30
33
31
34
# Supported OS
32
35
OS_LIST =macOS iOS tvOS watchOS
@@ -101,7 +104,7 @@ downloads/python-$(PYTHON_PKG_VERSION)-macos11.pkg:
101
104
@echo " >>> Download macOS Python package"
102
105
mkdir -p downloads
103
106
curl $(CURL_FLAGS ) -o $@ \
104
- https://www.python.org/ftp/python/$(PYTHON_PKG_VERSION ) /python-$(PYTHON_PKG_VERSION ) -macos11.pkg
107
+ https://www.python.org/ftp/python/$(PYTHON_PKG_MICRO_VERSION ) /python-$(PYTHON_PKG_VERSION ) -macos11.pkg
105
108
106
109
# ##########################################################################
107
110
# Build for specified target (from $(TARGETS-*))
@@ -239,9 +242,9 @@ PYTHON_STDLIB-$(target)=$$(PYTHON_INSTALL-$(target))/lib/python$(PYTHON_VER)
239
242
$$(PYTHON_SRCDIR-$(target ) ) /configure : \
240
243
downloads/Python-$(PYTHON_VERSION ) .tar.gz \
241
244
$$(BZIP2_LIB-$(target ) ) \
242
- $$(XZ_LIB -$(target ) ) \
245
+ $$(LIBFFI_LIB -$(target ) ) \
243
246
$$(OPENSSL_SSL_LIB-$(target ) ) \
244
- $$(LIBFFI_LIB -$(target ) )
247
+ $$(XZ_LIB -$(target ) )
245
248
@echo " >>> Unpack and configure Python for $( target) "
246
249
mkdir -p $$(PYTHON_SRCDIR-$(target ) )
247
250
tar zxf downloads/Python-$(PYTHON_VERSION ) .tar.gz --strip-components 1 -C $$(PYTHON_SRCDIR-$(target ) )
@@ -311,12 +314,12 @@ vars-$(target):
311
314
@echo "SDK_ROOT-$(target ) : $$(SDK_ROOT-$(target ) ) "
312
315
@echo "BZIP2_INSTALL-$(target ) : $$(BZIP2_INSTALL-$(target ) ) "
313
316
@echo "BZIP2_LIB-$(target ) : $$(BZIP2_LIB-$(target ) ) "
314
- @echo "XZ_INSTALL-$(target ) : $$(XZ_INSTALL-$(target ) ) "
315
- @echo "XZ_LIB-$(target ) : $$(XZ_LIB-$(target ) ) "
316
- @echo "OPENSSL_INSTALL-$(target ) : $$(OPENSSL_INSTALL-$(target ) ) "
317
- @echo "OPENSSL_SSL_LIB-$(target ) : $$(OPENSSL_SSL_LIB-$(target ) ) "
318
317
@echo "LIBFFI_INSTALL-$(target ) : $$(LIBFFI_INSTALL-$(target ) ) "
319
318
@echo "LIBFFI_LIB-$(target ) : $$(LIBFFI_LIB-$(target ) ) "
319
+ @echo "OPENSSL_INSTALL-$(target ) : $$(OPENSSL_INSTALL-$(target ) ) "
320
+ @echo "OPENSSL_SSL_LIB-$(target ) : $$(OPENSSL_SSL_LIB-$(target ) ) "
321
+ @echo "XZ_INSTALL-$(target ) : $$(XZ_INSTALL-$(target ) ) "
322
+ @echo "XZ_LIB-$(target ) : $$(XZ_LIB-$(target ) ) "
320
323
@echo "PYTHON_SRCDIR-$(target ) : $$(PYTHON_SRCDIR-$(target ) ) "
321
324
@echo "PYTHON_INSTALL-$(target ) : $$(PYTHON_INSTALL-$(target ) ) "
322
325
@echo "PYTHON_FRAMEWORK-$(target ) : $$(PYTHON_FRAMEWORK-$(target ) ) "
@@ -568,8 +571,8 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
568
571
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
569
572
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(PYTHON_VER)/$(os)/VERSIONS
570
573
echo "---------------------" >> support/$(PYTHON_VER)/$(os)/VERSIONS
571
- echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
572
574
echo "BZip2: $(BZIP2_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
575
+ echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
573
576
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
574
577
echo "XZ: $(XZ_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
575
578
0 commit comments