Skip to content

Commit 8167b38

Browse files
committed
Merge branch 'dev' into 3.6
2 parents ccc20a5 + cb7e5fe commit 8167b38

8 files changed

+15
-19
lines changed

Makefile

+7-3
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.6.14
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.0.2
@@ -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
@@ -212,13 +216,13 @@ endif
212216
ifeq ($2,macOS)
213217
cd $$(OPENSSL_DIR-$1) && \
214218
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
215-
./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
219+
./Configure darwin64-$$(ARCH-$1)-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
216220
else
217221
cd $$(OPENSSL_DIR-$1) && \
218222
CC="$$(CC-$1)" \
219223
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
220224
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
221-
./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
225+
./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl
222226
endif
223227

224228
# Build OpenSSL

README.rst

+2-2
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

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _heapq _heapqmodule.c
2626
_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
2727
_json _json.c
2828
_locale _localemodule.c
29-
_lsprof _lsprof.o rotatingtree.c
29+
_lsprof _lsprof.c rotatingtree.c
3030
_lzma _lzmamodule.c -I$(srcdir)/../Support/XZ/Headers -L$(srcdir)/../Support/XZ/ -lxz
3131
_md5 md5module.c
3232
_multibytecodec cjkcodecs/multibytecodec.c
@@ -60,8 +60,8 @@ _symtable symtablemodule.c
6060
_thread -DPy_BUILD_CORE _threadmodule.c
6161
_tracemalloc _tracemalloc.c hashtable.c
6262
_weakref _weakref.c
63-
atexit atexitmodule.c
6463
array arraymodule.c
64+
atexit atexitmodule.c
6565
audioop audioop.c
6666
binascii binascii.c
6767
cmath cmathmodule.c _math.c
@@ -73,7 +73,7 @@ itertools itertoolsmodule.c
7373
math mathmodule.c
7474
mmap mmapmodule.c
7575
parser parsermodule.c
76-
posix -DPy_BUILD_CORE posixmodule.c
76+
posix posixmodule.c
7777
pwd pwdmodule.c
7878
pyexpat expat/xmlparse.c \
7979
expat/xmlrole.c \
@@ -106,7 +106,6 @@ zlib zlibmodule.c -I$(prefix)/include -lz
106106
#_curses_panel _curses_panel.c -lpanel -lncurses
107107
#_dbm _dbmmodule.c
108108
#_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
109-
#_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation
110109
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I... -L...
111110
#nis nismodule.c -lnsl
112111
#ossaudiodev

patch/Python/Setup.macOS-x86_64

+2
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

+1-7
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

-1
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

-1
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

-1
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)