Skip to content

Commit 773533e

Browse files
committed
Merge branch 'dev' into 3.8
2 parents e7b1566 + a8d691d commit 773533e

11 files changed

+225
-63
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ downloads/libffi-$(LIBFFI_VERSION).tgz:
232232
clean-Python:
233233
@echo ">>> Clean Python build products"
234234
rm -rf \
235+
dist/Python-$(PYTHON_VER)-* \
235236
build/*/Python-$(PYTHON_VERSION)-* \
236237
build/*/python \
237238
build/*/python-*.log \
@@ -469,7 +470,7 @@ $$(PYTHON_DIR-$(target))/Makefile: \
469470
> $$(PYTHON_DIR-$(target))/Modules/Setup.local
470471
# Configure target Python
471472
cd $$(PYTHON_DIR-$(target)) && \
472-
PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/_install/bin:$(PATH) \
473+
PATH="$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/_install/bin:$(PATH)" \
473474
./configure \
474475
CC="$$(CC-$(target))" LD="$$(CC-$(target))" \
475476
--host=$$(MACHINE_DETAILED-$(target))-apple-$(shell echo $(os) | tr '[:upper:]' '[:lower:]') \
@@ -835,7 +836,7 @@ $$(PYTHON_XCFRAMEWORK-$(os)): $$(foreach sdk,$$(SDKS-$(os)),$$(PYTHON_FATLIB-$$(
835836
cp -f -r $$(PYTHON_DIR-$$(firstword $$(PYTHON_TARGETS-$(os))))/_install/lib/python$(PYTHON_VER) \
836837
$$(PYTHON_RESOURCES-$(os))
837838

838-
Python-$(os): $$(PYTHON_XCFRAMEWORK-$(os))
839+
Python-$(os): dist/Python-$(PYTHON_VER)-$(os)-support.$(BUILD_NUMBER).tar.gz
839840

840841
###########################################################################
841842
# Build

patch/Python/Setup.embedded

Lines changed: 59 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,34 @@
22
# Static compilation instructions for all binary modules.
33
#####################################################################
44

5-
_abc _abc.c
5+
*static*
6+
67
_asyncio _asynciomodule.c
78
_bisect _bisectmodule.c
89
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
910
_bz2 _bz2module.c -I$(srcdir)/../Support/BZip2.xcframework/{{slice}}/Headers -L$(srcdir)/../Support/BZip2.xcframework/{{slice}} -lbzip2
10-
_codecs _codecsmodule.c
1111
_codecs_cn cjkcodecs/_codecs_cn.c
1212
_codecs_hk cjkcodecs/_codecs_hk.c
1313
_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
1414
_codecs_jp cjkcodecs/_codecs_jp.c
1515
_codecs_kr cjkcodecs/_codecs_kr.c
1616
_codecs_tw cjkcodecs/_codecs_tw.c
17-
_collections _collectionsmodule.c
1817
_contextvars _contextvarsmodule.c
1918
_csv _csv.c
2019
_dbm _dbmmodule.c -DHAVE_NDBM_H
2120
_datetime _datetimemodule.c
2221
_elementtree _elementtree.c \
2322
-I$(srcdir)/Modules/expat
2423
-DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
25-
_functools -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _functoolsmodule.c
2624
_hashlib _hashopenssl.c -I$(srcdir)/../Support/OpenSSL.xcframework/{{slice}}/Headers -L$(srcdir)/../Support/OpenSSL.xcframework/{{slice}} -lOpenSSL -DUSE_SSL
2725
_heapq _heapqmodule.c
28-
_io -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal -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
2926
_json -I$(srcdir)/Include/internal -DPy_BUILD_CORE_BUILTIN _json.c
30-
_locale _localemodule.c # -lintl
3127
_lsprof _lsprof.c rotatingtree.c
3228
_lzma _lzmamodule.c -I$(srcdir)/../Support/XZ.xcframework/{{slice}}/Headers -L$(srcdir)/../Support/XZ.xcframework/{{slice}} -lxz
3329
_md5 md5module.c
3430
_multibytecodec cjkcodecs/multibytecodec.c
35-
_multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
31+
_multiprocessing -I$(srcdir)/Modules/_multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
3632
_opcode _opcode.c
37-
_operator _operator.c
3833
_pickle _pickle.c -DPy_BUILD_CORE
3934
_posixsubprocess _posixsubprocess.c
4035
_queue _queuemodule.c
@@ -43,7 +38,6 @@ _sha1 sha1module.c
4338
_sha3 _sha3/sha3module.c
4439
_sha256 sha256module.c
4540
_sha512 sha512module.c
46-
_signal -DPy_BUILD_CORE -I$(srcdir)/Include/internal signalmodule.c
4741
_socket socketmodule.c
4842
_sqlite3 -I$(srcdir)/Modules/_sqlite -DMODULE_NAME='\"sqlite3\"' -DSQLITE_OMIT_LOAD_EXTENSION -lsqlite3 \
4943
_sqlite/cache.c \
@@ -55,30 +49,18 @@ _sqlite3 -I$(srcdir)/Modules/_sqlite -DMODULE_NAME='\"sqlite3\"' -DSQLITE_OMIT_L
5549
_sqlite/row.c \
5650
_sqlite/statement.c \
5751
_sqlite/util.c
58-
_sre _sre.c
5952
_ssl _ssl.c -I$(srcdir)/../Support/OpenSSL.xcframework/{{slice}}/Headers -L$(srcdir)/../Support/OpenSSL.xcframework/{{slice}} -lOpenSSL -DUSE_SSL
60-
_stat _stat.c
6153
_statistics _statisticsmodule.c
6254
_struct _struct.c
63-
_symtable symtablemodule.c
64-
_thread -DPy_BUILD_CORE -I$(srcdir)/Include/internal _threadmodule.c
65-
_tracemalloc _tracemalloc.c hashtable.c
66-
_weakref _weakref.c
6755
_uuid _uuidmodule.c
6856
array arraymodule.c
69-
atexit atexitmodule.c
7057
binascii binascii.c
7158
cmath cmathmodule.c _math.c
72-
errno errnomodule.c
73-
faulthandler faulthandler.c
7459
fcntl fcntlmodule.c
7560
grp grpmodule.c
76-
itertools itertoolsmodule.c
7761
math mathmodule.c
7862
mmap mmapmodule.c
7963
parser parsermodule.c
80-
posix -DPy_BUILD_CORE -I$(srcdir)/Include/internal posixmodule.c
81-
pwd pwdmodule.c
8264
pyexpat expat/xmlparse.c \
8365
expat/xmlrole.c \
8466
expat/xmltok.c \
@@ -89,35 +71,74 @@ resource resource.c
8971
select selectmodule.c
9072
syslog syslogmodule.c
9173
termios termios.c
92-
time -DPy_BUILD_CORE -I$(srcdir)/Include/internal timemodule.c
9374
unicodedata unicodedata.c
9475
zlib zlibmodule.c -I$(prefix)/include -lz
9576

9677
#####################################################################
97-
# Testing modules
78+
# Modules that will be added by the bootstrap
9879
#####################################################################
99-
#_ctypes_test _ctypes/_ctypes_test.c
100-
#_testbuffer _testbuffer.c
101-
#_testcapi _testcapimodule.c
102-
#_testimportmultiple _testimportmultiple.c
103-
#_testinternalcapi _testinternalcapi.c -I$(srcdir)/Include/internal -DPy_BUILD_CORE_MODULE
104-
#_testmultiphase _testmultiphase.c
80+
81+
# _abc
82+
# _codecs
83+
# _collections
84+
# _functools
85+
# _io
86+
# _locale
87+
# _operator
88+
# _signal
89+
# _sre
90+
# _stat
91+
# _symtable
92+
# _thread
93+
# _tracemalloc
94+
# _weakref
95+
# atexit
96+
# errno
97+
# faulthandler
98+
# itertools
99+
# posix
100+
# pwd
101+
# time
105102

106103
#####################################################################
107-
# Modules that require additional frameworks
104+
# DISABLED Testing modules
108105
#####################################################################
109-
#_curses _cursesmodule.c -lcurses -ltermcap
110-
#_curses_panel _curses_panel.c -lpanel -lncurses
111-
#_gdbm _gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
112-
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I... -L...
113-
#readline readline.c -lreadline -ltermcap
106+
107+
*disabled*
108+
109+
_ctypes_test
110+
_testbuffer
111+
_testcapi
112+
_testimportmultiple
113+
_testinternalcapi
114+
_testmultiphase
115+
_xxsubinterpreters
116+
_xxtestfuzz
117+
xxlimited
118+
xxlimited_35
119+
120+
#####################################################################
121+
# DISABLED Modules that require additional frameworks
122+
#####################################################################
123+
124+
*disabled*
125+
126+
_gdbm
127+
_tkinter
128+
readline
114129

115130
#####################################################################
116131
# Modules that exist, but are deprecated by PEP594 and will be
117132
# removed in Python 3.13
118133
#####################################################################
134+
135+
*static*
136+
119137
_crypt _cryptmodule.c
120138
audioop audioop.c
121-
#nis nismodule.c -lnsl
122-
#ossaudiodev
123-
#spwd spwdmodule.c
139+
140+
*disabled*
141+
142+
nis
143+
ossaudiodev
144+
spwd

patch/Python/Setup.iOS

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#####################################################################
22
# iOS: Platform specific configuration
33
#####################################################################
4+
5+
*static*
6+
47
_ctypes _ctypes/_ctypes.c \
58
_ctypes/callbacks.c \
69
_ctypes/callproc.c \
@@ -10,10 +13,10 @@ _ctypes _ctypes/_ctypes.c \
1013
-I$(srcdir)/Modules/_ctypes/darwin \
1114
-I$(srcdir)/../Support/libFFI.xcframework/{{slice}}/Headers \
1215
-DPy_BUILD_CORE \
13-
-DHAVE_FFI_CLOSURE_ALLOC=1 \
14-
-DHAVE_FFI_PREP_CIF_VAR=1 \
15-
-DHAVE_FFI_PREP_CLOSURE_LOC=1 \
16-
-DUSING_MALLOC_CLOSURE_DOT_C=1 \
16+
-DHAVE_FFI_CLOSURE_ALLOC \
17+
-DHAVE_FFI_PREP_CIF_VAR \
18+
-DHAVE_FFI_PREP_CLOSURE_LOC \
19+
-DUSING_MALLOC_CLOSURE_DOT_C \
1720
-L$(srcdir)/../Support/libFFI.xcframework/{{slice}} \
1821
-lFFI
1922

@@ -33,4 +36,4 @@ _decimal _decimal/_decimal.c \
3336
_decimal/libmpdec/sixstep.c \
3437
_decimal/libmpdec/transpose.c \
3538
-I$(srcdir)/Modules/_decimal/libmpdec \
36-
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
39+
-DCONFIG_64 -DANSI -DHAVE_UINT128_T

patch/Python/Setup.macOS

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#####################################################################
22
# macOS: Platform specific configuration
33
#####################################################################
4+
5+
*static*
6+
47
_ctypes _ctypes/_ctypes.c \
58
_ctypes/callbacks.c \
69
_ctypes/callproc.c \
@@ -10,12 +13,12 @@ _ctypes _ctypes/_ctypes.c \
1013
-I$(srcdir)/Modules/_ctypes/darwin \
1114
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi \
1215
-DPy_BUILD_CORE \
13-
-DHAVE_FFI_CLOSURE_ALLOC=1 \
14-
-DHAVE_FFI_PREP_CIF_VAR=1 \
15-
-DHAVE_FFI_PREP_CLOSURE_LOC=1 \
16+
-DHAVE_FFI_CLOSURE_ALLOC \
17+
-DHAVE_FFI_PREP_CIF_VAR \
18+
-DHAVE_FFI_PREP_CLOSURE_LOC \
1619
-DMACOSX \
17-
-DUSING_APPLE_OS_LIBFFI=1 \
18-
-DUSING_MALLOC_CLOSURE_DOT_C=1 \
20+
-DUSING_APPLE_OS_LIBFFI \
21+
-DUSING_MALLOC_CLOSURE_DOT_C \
1922
-lffi
2023

2124
_decimal _decimal/_decimal.c \
@@ -34,7 +37,7 @@ _decimal _decimal/_decimal.c \
3437
_decimal/libmpdec/sixstep.c \
3538
_decimal/libmpdec/transpose.c \
3639
-I$(srcdir)/Modules/_decimal/libmpdec \
37-
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
40+
-DCONFIG_64 -DANSI -DHAVE_UINT128_T
3841

3942
_posixshmem -I$(srcdir)/Modules/_multiprocessing _multiprocessing/posixshmem.c
4043

patch/Python/Setup.tvOS

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#####################################################################
22
# tvOS: Platform specific configuration
33
#####################################################################
4+
5+
*static*
6+
47
_ctypes _ctypes/_ctypes.c \
58
_ctypes/callbacks.c \
69
_ctypes/callproc.c \
@@ -10,10 +13,10 @@ _ctypes _ctypes/_ctypes.c \
1013
-I$(srcdir)/Modules/_ctypes/darwin \
1114
-I$(srcdir)/../Support/libFFI.xcframework/{{slice}}/Headers \
1215
-DPy_BUILD_CORE \
13-
-DHAVE_FFI_CLOSURE_ALLOC=1 \
14-
-DHAVE_FFI_PREP_CIF_VAR=1 \
15-
-DHAVE_FFI_PREP_CLOSURE_LOC=1 \
16-
-DUSING_MALLOC_CLOSURE_DOT_C=1 \
16+
-DHAVE_FFI_CLOSURE_ALLOC \
17+
-DHAVE_FFI_PREP_CIF_VAR \
18+
-DHAVE_FFI_PREP_CLOSURE_LOC \
19+
-DUSING_MALLOC_CLOSURE_DOT_C \
1720
-L$(srcdir)/../Support/libFFI.xcframework/{{slice}} \
1821
-lFFI
1922

@@ -33,4 +36,4 @@ _decimal _decimal/_decimal.c \
3336
_decimal/libmpdec/sixstep.c \
3437
_decimal/libmpdec/transpose.c \
3538
-I$(srcdir)/Modules/_decimal/libmpdec \
36-
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
39+
-DCONFIG_64 -DANSI -DHAVE_UINT128_T

patch/Python/Setup.watchOS

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#####################################################################
22
# watchOS: Platform specific configuration
33
#####################################################################
4+
5+
*static*
6+
47
_ctypes _ctypes/_ctypes.c \
58
_ctypes/callbacks.c \
69
_ctypes/callproc.c \
@@ -10,9 +13,9 @@ _ctypes _ctypes/_ctypes.c \
1013
-I$(srcdir)/Modules/_ctypes/darwin \
1114
-I$(srcdir)/../Support/libFFI.xcframework/{{slice}}/Headers \
1215
-DPy_BUILD_CORE \
13-
-DHAVE_FFI_CLOSURE_ALLOC=1 \
14-
-DHAVE_FFI_PREP_CIF_VAR=1 \
15-
-DHAVE_FFI_PREP_CLOSURE_LOC=1 \
16-
-DUSING_MALLOC_CLOSURE_DOT_C=1 \
16+
-DHAVE_FFI_CLOSURE_ALLOC \
17+
-DHAVE_FFI_PREP_CIF_VAR \
18+
-DHAVE_FFI_PREP_CLOSURE_LOC \
19+
-DUSING_MALLOC_CLOSURE_DOT_C \
1720
-L$(srcdir)/../Support/libFFI.xcframework/{{slice}} \
1821
-lFFI

patch/Python/Setup.watchos.arm64_32

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# watchOS ARM64_32: Target specific configuration
33
#####################################################################
44

5+
*static*
6+
57
_decimal _decimal/_decimal.c \
68
_decimal/libmpdec/basearith.c \
79
_decimal/libmpdec/constants.c \
@@ -18,4 +20,4 @@ _decimal _decimal/_decimal.c \
1820
_decimal/libmpdec/sixstep.c \
1921
_decimal/libmpdec/transpose.c \
2022
-I$(srcdir)/Modules/_decimal/libmpdec \
21-
-DCONFIG_32=1 -DANSI=1
23+
-DCONFIG_32 -DANSI

patch/Python/Setup.watchsimulator.arm64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# watchOS Simulator ARM64: Target specific configuration
33
#####################################################################
44

5+
*static*
6+
57
_decimal _decimal/_decimal.c \
68
_decimal/libmpdec/basearith.c \
79
_decimal/libmpdec/constants.c \
@@ -18,4 +20,4 @@ _decimal _decimal/_decimal.c \
1820
_decimal/libmpdec/sixstep.c \
1921
_decimal/libmpdec/transpose.c \
2022
-I$(srcdir)/Modules/_decimal/libmpdec \
21-
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
23+
-DCONFIG_64 -DANSI -DHAVE_UINT128_T

patch/Python/Setup.watchsimulator.x86_64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# watchOS simulator x86_64: Target specific configuration
33
#####################################################################
44

5+
*static*
6+
57
_decimal _decimal/_decimal.c \
68
_decimal/libmpdec/basearith.c \
79
_decimal/libmpdec/constants.c \
@@ -18,4 +20,4 @@ _decimal _decimal/_decimal.c \
1820
_decimal/libmpdec/sixstep.c \
1921
_decimal/libmpdec/transpose.c \
2022
-I$(srcdir)/Modules/_decimal/libmpdec \
21-
-DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1
23+
-DCONFIG_64 -DANSI -DHAVE_UINT128_T

0 commit comments

Comments
 (0)