Skip to content

Commit fec30d0

Browse files
committed
Merge branch 'dev' into 3.7
2 parents c4a29c1 + cb7e5fe commit fec30d0

9 files changed

+15
-19
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
upload_url: ${{ steps.create_release.outputs.upload_url }}
4545

4646
build:
47-
runs-on: macOS-latest
47+
runs-on: macOS-11.0
4848
needs: make-release
4949
strategy:
5050
max-parallel: 4

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ BUILD_NUMBER=custom
3030
MACOSX_DEPLOYMENT_TARGET=10.8
3131

3232
# Version of packages that will be compiled by this meta-package
33+
# PYTHON_VERSION is the full version number (e.g., 3.10.0b3)
34+
# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
35+
# PYTHON_VER is the major/minor version (e.g., 3.10)
3336
PYTHON_VERSION=3.7.11
37+
PYTHON_MICRO_VERSION=$(shell echo $(PYTHON_VERSION) | grep -Eo "\d+\.\d+\.\d+")
3438
PYTHON_VER=$(basename $(PYTHON_VERSION))
3539

3640
OPENSSL_VERSION_NUMBER=1.1.1
@@ -156,7 +160,7 @@ clean-Python:
156160
# Download original Python source code archive.
157161
downloads/Python-$(PYTHON_VERSION).tgz:
158162
mkdir -p downloads
159-
if [ ! -e downloads/Python-$(PYTHON_VERSION).tgz ]; then curl -L https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tgz > downloads/Python-$(PYTHON_VERSION).tgz; fi
163+
if [ ! -e downloads/Python-$(PYTHON_VERSION).tgz ]; then curl -L https://www.python.org/ftp/python/$(PYTHON_MICRO_VERSION)/Python-$(PYTHON_VERSION).tgz > downloads/Python-$(PYTHON_VERSION).tgz; fi
160164

161165
# Some Python targets needed to identify the host build
162166
PYTHON_DIR-macOS=build/macOS/Python-$(PYTHON_VERSION)-macOS
@@ -213,13 +217,13 @@ endif
213217
ifeq ($2,macOS)
214218
cd $$(OPENSSL_DIR-$1) && \
215219
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
216-
./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
220+
./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
217221
else
218222
cd $$(OPENSSL_DIR-$1) && \
219223
CC="$$(CC-$1)" \
220224
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
221225
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
222-
./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
226+
./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
223227
endif
224228

225229
# Build OpenSSL

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ incorporated into an XCode project.
1515
The binaries support x86_64 for macOS; arm64 for iOS and appleTV devices;
1616
and armv7k for watchOS. This should enable the code to run on:
1717

18-
* MacBook
19-
* iMac
18+
* MacBook (MacBooks using Apple Silicon will run under Rosetta x86 emulation)
19+
* iMac (iMacs using Apple Silicon will run under Rosetta x86 emulation)
2020
* Mac Pro
2121
* iPhone (5s or later)
2222
* iPad (5th gen or later)

patch/Python/Setup.embedded

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _heapq _heapqmodule.c
2828
_io -DPy_BUILD_CORE -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
2929
_json _json.c
3030
_locale _localemodule.c
31-
_lsprof _lsprof.o rotatingtree.c
31+
_lsprof _lsprof.c rotatingtree.c
3232
_lzma _lzmamodule.c -I$(srcdir)/../Support/XZ/Headers -L$(srcdir)/../Support/XZ/ -lxz
3333
_md5 md5module.c
3434
_multibytecodec cjkcodecs/multibytecodec.c
@@ -64,8 +64,8 @@ _thread -DPy_BUILD_CORE _threadmodule.c
6464
_tracemalloc _tracemalloc.c hashtable.c
6565
_weakref _weakref.c
6666
_uuid _uuidmodule.c
67-
atexit atexitmodule.c
6867
array arraymodule.c
68+
atexit atexitmodule.c
6969
audioop audioop.c
7070
binascii binascii.c
7171
cmath cmathmodule.c _math.c
@@ -110,7 +110,6 @@ zlib zlibmodule.c -I$(prefix)/include -lz
110110
#_curses_panel _curses_panel.c -lpanel -lncurses
111111
#_dbm _dbmmodule.c
112112
#_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
113-
#_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation
114113
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I... -L...
115114
#nis nismodule.c -lnsl
116115
#ossaudiodev

patch/Python/Setup.macOS-x86_64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ _decimal _decimal/_decimal.c \
3535
_decimal/libmpdec/transpose.c \
3636
-I$(srcdir)/Modules/_decimal/libmpdec \
3737
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
38+
39+
_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation

patch/Python/release.common.exclude

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ Python/Resources/lib/python*/lib2to3/tests
1818
Python/Resources/lib/python*/sqlite3/test
1919
Python/Resources/lib/python*/test
2020
# Remove compiled test and example modules.
21-
Python/Resources/lib/python*/lib-dynload/_test*.so
22-
Python/Resources/lib/python*/lib-dynload/_ctypes_test*.so
23-
Python/Resources/lib/python*/lib-dynload/xxlimited*.so
24-
Python/Resources/lib/python*/lib-dynload/_xx*.so
25-
# Remove wsgiref web app module; it's unusual that mobile apps would
26-
# start a web app server with it.
27-
Python/Resources/lib/python*/wsgiref
21+
Python/Resources/lib/python*/lib-dynload/*.so
2822
# Remove config-* directory, which is used for compiling C extension modules.
2923
Python/Resources/lib/python*/config-*
3024
# Remove ensurepip. If user code needs pip, it can add it to

patch/Python/release.iOS.exclude

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
#
55
# Remove command-line curses toolkit.
66
Python/Resources/lib/python*/curses
7-
Python/Resources/lib/python*/lib-dynload/_curses*.so

patch/Python/release.tvOS.exclude

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
#
55
# Remove command-line curses toolkit.
66
Python/Resources/lib/python*/curses
7-
Python/Resources/lib/python*/lib-dynload/_curses*.so

patch/Python/release.watchOS.exclude

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
#
55
# Remove command-line curses toolkit.
66
Python/Resources/lib/python*/curses
7-
Python/Resources/lib/python*/lib-dynload/_curses*.so

0 commit comments

Comments
 (0)