Merge pull request #10990 from naveen521kk/update-python-3.9

python: update
This commit is contained in:
Naveen M K
2022-03-14 22:43:06 +05:30
committed by GitHub
132 changed files with 461 additions and 259 deletions

View File

@@ -56,5 +56,5 @@ index e3f79bf..45eab2a 100644
# Create file used for sys.path fixup -- see Modules/getpath.c
with open('pybuilddir.txt', 'w', encoding='utf8') as f:
--
2.34.1
2.35.1

View File

@@ -78,5 +78,5 @@ index 431d661..471860c 100644
mv config.c Modules
--
2.34.1
2.35.1

View File

@@ -285,5 +285,5 @@ index 188faee..1df9659 100644
#undef PACKAGE_BUGREPORT
--
2.34.1
2.35.1

View File

@@ -40,5 +40,5 @@ index 4bd4eb4..475c2a8 100644
Symbols and macros to supply platform-independent interfaces to basic
C language & library operations whose spellings vary across platforms.
--
2.34.1
2.35.1

View File

@@ -59,5 +59,5 @@ index 6a375e3..eb285cc 100644
# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
--
2.34.1
2.35.1

View File

@@ -86,5 +86,5 @@ index eb285cc..bbea587 100644
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
--
2.34.1
2.35.1

View File

@@ -39,5 +39,5 @@ index bbea587..ea7d551 100644
[Defined to enable large file support when an off_t is bigger than a long
and long long is at least as big as an off_t. You may need
--
2.34.1
2.35.1

View File

@@ -39,5 +39,5 @@ index ea7d551..bb80ed8 100644
for dir in $SRCDIRS; do
if test ! -d $dir; then
--
2.34.1
2.35.1

View File

@@ -120,5 +120,5 @@ index bb80ed8..d3ee3fe 100644
# it may influence the way we can build extensions, so distutils
# needs to check it
--
2.34.1
2.35.1

View File

@@ -75,5 +75,5 @@ index d3ee3fe..fcbb02c 100644
# For a single AC_DEFINE, no template is needed.
AH_TEMPLATE(_REENTRANT,
--
2.34.1
2.35.1

View File

@@ -61,5 +61,5 @@ index fcbb02c..b797c58 100644
# For a single AC_DEFINE, no template is needed.
AH_TEMPLATE(_REENTRANT,
--
2.34.1
2.35.1

View File

@@ -78,5 +78,5 @@ index c6023e1..86f877b 100644
self.detect_modules()
--
2.34.1
2.35.1

View File

@@ -65,5 +65,5 @@ index b797c58..b457a4b 100644
esac
--
2.34.1
2.35.1

View File

@@ -100,5 +100,5 @@ index b457a4b..6ba6dc7 100644
case $ac_sys_system in
AIX*)
--
2.34.1
2.35.1

View File

@@ -48,5 +48,5 @@ index 6ba6dc7..ac5061f 100644
SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs"
case $host in
--
2.34.1
2.35.1

View File

@@ -30,5 +30,5 @@ index 86f877b..f00612a 100644
def detect_uuid(self):
--
2.34.1
2.35.1

View File

@@ -56,5 +56,5 @@ index f00612a..d74f25e 100644
# Fred Drake's interface to the Python parser
self.add(Extension('parser', ['parsermodule.c']))
--
2.34.1
2.35.1

View File

@@ -41,5 +41,5 @@ index d74f25e..2c3e29e 100644
if sysconfig.get_config_var('HAVE_LIBDL'):
--
2.34.1
2.35.1

View File

@@ -163,5 +163,5 @@ index 2c3e29e..2beb525 100644
self.add(Extension('_socket', ['socketmodule.c'], **kwargs))
elif self.compiler.find_library_file(self.lib_dirs, 'net'):
--
2.34.1
2.35.1

View File

@@ -90,5 +90,5 @@ index 2beb525..a35f493 100644
def detect_socket(self):
# socket(2)
--
2.34.1
2.35.1

View File

@@ -89,5 +89,5 @@ index a35f493..a802e51 100644
# Andrew Kuchling's zlib module. Note that some versions of zlib
# 1.1.3 have security problems. See CERT Advisory CA-2002-07:
--
2.34.1
2.35.1

View File

@@ -21,5 +21,5 @@ index 45eab2a..42de9b3 100644
return 'win-amd64'
if '(arm)' in sys.version.lower():
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index a802e51..2e2578c 100644
# libssl and libcrypto not found
self.missing.extend(['_ssl', '_hashlib'])
--
2.34.1
2.35.1

View File

@@ -76,5 +76,5 @@ index 42de9b3..65cb345 100644
# If srcdir is a relative path (typically '.' or '..')
# then it should be interpreted relative to the directory
--
2.34.1
2.35.1

View File

@@ -50,5 +50,5 @@ index ceae67e..b9cf96b 100644
return NULL;
#endif
--
2.34.1
2.35.1

View File

@@ -27,5 +27,5 @@ index 2e2578c..0d2740b 100644
if filename in updated_files:
newupdated_files.append(newfilename)
--
2.34.1
2.35.1

View File

@@ -55,5 +55,5 @@ index 9e617af..b344f03 100644
path = os.path.join(prefix, libdir,
"python%d.%d" % sys.version_info[:2],
--
2.34.1
2.35.1

View File

@@ -158,5 +158,5 @@ index 2602fe2..e0e048a 100644
esac
done
--
2.34.1
2.35.1

View File

@@ -134,5 +134,5 @@ index 495cf68..7f2bb28 100644
MACOSX_DEFAULT_ARCH="x86_64"
;;
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index 0d2740b..d6b0856 100644
if sysconfig.get_config_var('HAVE_LIBDL'):
--
2.34.1
2.35.1

View File

@@ -393,5 +393,5 @@ index 23d0e38..37a7670 100644
tail = filepath;
else
--
2.34.1
2.35.1

View File

@@ -501,5 +501,5 @@ index 26e97df..75ee355 100644
/* Get an absolute path.
--
2.34.1
2.35.1

View File

@@ -54,5 +54,5 @@ index bede134..c782e0f 100644
&& calculate->warnings)
{
--
2.34.1
2.35.1

View File

@@ -23,5 +23,5 @@ index d071a74..825ce5d 100644
+@USE_WIN32_MODULE@msvcrt -DPy_BUILD_CORE ../PC/msvcrtmodule.c
--
2.34.1
2.35.1

View File

@@ -122,5 +122,5 @@ index 7f2bb28..a7d664c 100644
AC_SUBST(INITSYS)
case $host in
--
2.34.1
2.35.1

View File

@@ -58,5 +58,5 @@ index f69d0db..64f7719 100644
#
--
2.34.1
2.35.1

View File

@@ -35,5 +35,5 @@ index d6b0856..27f7bb2 100644
self.add(Extension('_msi', [os.path.join(pc_srcdir, p)
for p in ['_msi.c']],
--
2.34.1
2.35.1

View File

@@ -29,5 +29,5 @@ index 27f7bb2..5164bf7 100644
def init_inc_lib_dirs(self):
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index 25ad83c..f57879e 100644
yield fullname
elif (maxlevels > 0 and name != os.curdir and name != os.pardir and
--
2.34.1
2.35.1

View File

@@ -38,5 +38,5 @@ index 3d42756..d00acbd 100644
# Here are a couple of targets for MacOSX again, to install a full
# framework-based Python. frameworkinstall installs everything, the
--
2.34.1
2.35.1

View File

@@ -83,5 +83,5 @@ index 5164bf7..f761245 100644
# XXX handle these, but how to detect?
# *** Uncomment and edit for PIL (TkImaging) extension only:
--
2.34.1
2.35.1

View File

@@ -31,5 +31,5 @@ index b70252d..0d5cee2 100644
/* configure was checking <curses.h>, but we will
use <ncurses.h>, which has some or all these features. */
--
2.34.1
2.35.1

View File

@@ -41,5 +41,5 @@ index b7aa528..4a1ee9a 100644
{2, 1},
{3, 2},
--
2.34.1
2.35.1

View File

@@ -66,5 +66,5 @@ index 2e4ccbb..a8d5c31 100644
from frozen.obj. In the Makefile, frozen.o is not linked into this executable,
so we define the variable here. */
--
2.34.1
2.35.1

View File

@@ -35,5 +35,5 @@ index f761245..8454b28 100644
HOST_PLATFORM = get_platform()
MS_WINDOWS = (HOST_PLATFORM == 'win32')
--
2.34.1
2.35.1

View File

@@ -69,5 +69,5 @@ index 8454b28..d4778b0 100644
with open(tmpfile) as fp:
detected_archs = []
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 3243944..99d4977 100644
#endif
--
2.34.1
2.35.1

View File

@@ -56,5 +56,5 @@ index a7d664c..7589b6a 100644
# checks for system dependent C++ extensions support
case "$ac_sys_system" in
--
2.34.1
2.35.1

View File

@@ -29,5 +29,5 @@ index 4afa4eb..2fe2eec 100644
elif _sys.platform == "cygwin":
pythonapi = PyDLL("libpython%d.%d.dll" % _sys.version_info[:2])
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index 16b0f79..46b28b2 100644
extern const char * gdbm_strerror(gdbm_error);
#endif
--
2.34.1
2.35.1

View File

@@ -81,5 +81,5 @@ index 670e5d2..d582963 100644
PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
--
2.34.1
2.35.1

View File

@@ -35,5 +35,5 @@ index 30f4e59..dda3ae1 100644
self._load_windows_store_certs(storename, purpose)
self.set_default_verify_paths()
--
2.34.1
2.35.1

View File

@@ -35,5 +35,5 @@ index a52b299..e890979 100644
PyLong_FromVoidPtr(PyWin_DLLhModule));
SET_SYS_FROM_STRING("winver",
--
2.34.1
2.35.1

View File

@@ -38,5 +38,5 @@ index 59c0dbf..adccaa7 100644
#elif defined(__cplusplus)
#define COMPILER "[C++]"
--
2.34.1
2.35.1

View File

@@ -29,5 +29,5 @@ index 7589b6a..d97844f 100644
AC_MSG_CHECKING(for -O2)
saved_cflags="$CFLAGS"
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index 1895e74..1d2e16e 100644
unittest unittest/test unittest/test/testmock \
venv venv/scripts venv/scripts/common venv/scripts/posix \
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 2bafdd0..7ce4355 100644
time -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal timemodule.c # -lm # time operations and variables
_thread -DPy_BUILD_CORE_BUILTIN -I$(srcdir)/Include/internal _threadmodule.c # low-level threading interface
--
2.34.1
2.35.1

View File

@@ -40,5 +40,5 @@ index d4778b0..6f4730d 100644
# readline
do_readline = self.compiler.find_library_file(self.lib_dirs, 'readline')
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 806e638..d7954d1 100644
#endif
{NULL}
--
2.34.1
2.35.1

View File

@@ -457,5 +457,5 @@ index 60f091c..734084c 100644
if (!Py_InteractiveFlag)
return 0;
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 6f4730d..4d8dc48 100644
for cand in dbm_order:
if cand == "ndbm":
--
2.34.1
2.35.1

View File

@@ -143,5 +143,5 @@ index d97844f..9eed603 100644
# Availability of -O2:
AC_MSG_CHECKING(for -O2)
--
2.34.1
2.35.1

View File

@@ -22,5 +22,5 @@ index 4d8dc48..d376299 100644
depends = ['_decimal/docstrings.h']
else:
--
2.34.1
2.35.1

View File

@@ -28,5 +28,5 @@ index d376299..1e4f9e5 100644
curses_library = ""
# Cannot use os.popen here in py3k.
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 6ec2994..a80f195 100644
#define _PyIsSelectable_fd(FD) (1)
#else
--
2.34.1
2.35.1

View File

@@ -22,5 +22,5 @@ index c782e0f..83422d3 100644
}
--
2.34.1
2.35.1

View File

@@ -22,5 +22,5 @@ index 314059d..f26e662 100644
sizeof(channelid), /* tp_basicsize */
0, /* tp_itemsize */
--
2.34.1
2.35.1

View File

@@ -24,5 +24,5 @@ index 1e4f9e5..4433082 100644
# Enable support for loadable extensions in the sqlite3 module
# if --enable-loadable-sqlite-extensions configure option is used.
--
2.34.1
2.35.1

View File

@@ -31,5 +31,5 @@ index 9eed603..d4bd1d1 100644
[AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.)
AC_MSG_RESULT(yes)],
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 45af353..877b5d3 100644
_OLD_VIRTUAL_PATH="$PATH"
--
2.34.1
2.35.1

View File

@@ -66,5 +66,5 @@ index 6f1af29..83ba0bc 100644
def setup_scripts(self, context):
"""
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index fd3d142..8df163c 100644
fi
--
2.34.1
2.35.1

View File

@@ -34,5 +34,5 @@ index d4bd1d1..da43ea0 100644
else
LIBPYTHON=''
--
2.34.1
2.35.1

View File

@@ -27,5 +27,5 @@ index fe31f43..229d9aa 100644
setattr(self_module, 'path_sep', path_sep)
setattr(self_module, 'path_separators', ''.join(path_separators))
--
2.34.1
2.35.1

View File

@@ -21,5 +21,5 @@ index 7aeda14..a66e754 100644
pathmod = ntpath
--
2.34.1
2.35.1

View File

@@ -127,5 +127,5 @@ index 0ce5e94..6a6fe7e 100644
/* minimum/maximum thread stack sizes supported */
--
2.34.1
2.35.1

View File

@@ -24,5 +24,5 @@ index 4433082..e52eacd 100644
# Python PEP-3118 (buffer protocol) test module
--
2.34.1
2.35.1

View File

@@ -21,5 +21,5 @@ index e52eacd..71e6ea5 100644
MACOS = (HOST_PLATFORM == 'darwin')
AIX = (HOST_PLATFORM.startswith('aix'))
--
2.34.1
2.35.1

View File

@@ -45,5 +45,5 @@ index adccaa7..b529e29 100644
#elif defined(__cplusplus)
#define COMPILER "[C++]"
--
2.34.1
2.35.1

View File

@@ -24,5 +24,5 @@ index da43ea0..2ca299a 100644
AC_MSG_RESULT($LINKFORSHARED)
--
2.34.1
2.35.1

View File

@@ -23,5 +23,5 @@ index b344f03..474ef89 100644
else:
eof = 'Ctrl-D (i.e. EOF)'
--
2.34.1
2.35.1

View File

@@ -178,5 +178,5 @@ index 2ca299a..11872dc 100644
case $ac_sys_system in
AIX*)
--
2.34.1
2.35.1

View File

@@ -60,5 +60,5 @@ index b529e29..2d935fe 100644
#elif defined(__cplusplus)
#define COMPILER "[C++]"
--
2.34.1
2.35.1

View File

@@ -50,5 +50,5 @@ index 37feae5..bbe8e3c 100644
if not get_config_var('CUSTOMIZED_OSX_COMPILER'):
import _osx_support
--
2.34.1
2.35.1

View File

@@ -33,5 +33,5 @@ index d00c489..76a7d82 100644
return "-Wl,-R" + dir
else:
--
2.34.1
2.35.1

View File

@@ -56,5 +56,5 @@ index 4b002ec..7b2e1e0 100644
return 'win-amd64'
if '(arm)' in sys.version.lower():
--
2.34.1
2.35.1

View File

@@ -69,5 +69,5 @@ index 66c12dd..1960ef8 100644
# Because these compilers aren't configured in Python's pyconfig.h file by
# default, we should at least warn the user if he is using an unmodified
--
2.34.1
2.35.1

View File

@@ -25,5 +25,5 @@ index 1960ef8..39ad631 100644
shared_lib_format = "%s%s"
exe_extension = ".exe"
--
2.34.1
2.35.1

View File

@@ -34,5 +34,5 @@ index 39ad631..5b281e2 100644
try:
out_string = out.read()
--
2.34.1
2.35.1

View File

@@ -91,5 +91,5 @@ index bbe8e3c..80d3523 100644
if (not os.path.isabs(_config_vars['srcdir']) and
base != os.getcwd()):
--
2.34.1
2.35.1

View File

@@ -24,5 +24,5 @@ index 1c9d471..1dbdfe0 100644
# building python standard extensions
self.library_dirs.append('.')
--
2.34.1
2.35.1

View File

@@ -52,5 +52,5 @@ index 5b281e2..fba3485 100644
def is_cygwingcc():
--
2.34.1
2.35.1

View File

@@ -43,5 +43,5 @@ index aaa300e..c611252 100644
}
--
2.34.1
2.35.1

View File

@@ -75,5 +75,5 @@ index 7b2e1e0..75a369d 100644
else:
raise DistutilsPlatformError("nothing known about platform '%s'" % os.name)
--
2.34.1
2.35.1

View File

@@ -30,5 +30,5 @@ index fba3485..bb97880 100644
linker_so='%s %s %s'
% (self.linker_dll, shared_option,
--
2.34.1
2.35.1

View File

@@ -26,5 +26,5 @@ index bb97880..c134525 100644
UnixCCompiler.link(self, target_desc, objects, output_filename,
--
2.34.1
2.35.1

View File

@@ -157,5 +157,5 @@ index c134525..75bc17b 100644
+ out_string = check_output([cc, '-dumpmachine'])
return out_string.strip().endswith(b'cygwin')
--
2.34.1
2.35.1

View File

@@ -54,5 +54,5 @@ index 75bc17b..6a40e80 100644
(ext, src_name))
base = os.path.splitdrive(base)[1] # Chop off the drive
--
2.34.1
2.35.1

View File

@@ -34,5 +34,5 @@ index a7976fb..c341679 100644
self.__root = r"Software\Microsoft\VisualStudio"
# self.__macros = MACROS
--
2.34.1
2.35.1

View File

@@ -22,5 +22,5 @@ index 1dbdfe0..1598735 100644
# building third party extensions
config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
--
2.34.1
2.35.1

Some files were not shown because too many files have changed in this diff Show More