summaryrefslogtreecommitdiff
path: root/PCbuild
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45850: Implement deep-freeze on Windows (#29648)Guido van Rossum2021-11-223-6/+82
| | | | | | Implement changes to build with deep-frozen modules on Windows. Note that we now require Python 3.10 as the "bootstrap" or "host" Python. This causes a modest startup speed (around 7%) on Windows.
* Refactor parser compilation units into specific components (GH-29676)Pablo Galindo Salgado2021-11-213-0/+10
|
* bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)Victor Stinner2021-11-161-6/+0
| | | | | | | | | | | | | | | | Remove the asyncore and asynchat modules, deprecated in Python 3.6: use the asyncio module instead. Remove the smtpd module, deprecated in Python 3.6: the aiosmtpd module can be used instead, it is based on asyncio. * Remove asyncore, asynchat and smtpd documentation * Remove test_asyncore, test_asynchat and test_smtpd * Rename Lib/asynchat.py to Lib/test/support/_asynchat.py * Rename Lib/asyncore.py to Lib/test/support/_asyncore.py * Rename Lib/smtpd.py to Lib/test/support/_smtpd.py * Remove DeprecationWarning from private _asyncore, _asynchat and _smtpd modules * _smtpd: remove deprecated properties
* bpo-45732: Update bundled Tcl/Tk on Windows to 8.6.12 (GH-29477)Steve Dower2021-11-092-5/+5
|
* bpo-45720: Drop references to shlwapi.dll on Windows (GH-29417)Steve Dower2021-11-052-2/+2
|
* bpo-45220: Remove invalid include from resource definition files on Windows ↵Steve Dower2021-11-041-3/+0
| | | | (GH-29396)
* bpo-43652: Actually update to Tcl/Tk 8.6.11 on Windows (GH-29397)Steve Dower2021-11-042-4/+4
|
* bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)Erlend Egeberg Aasland2021-10-291-1/+11
| | | Automerge-Triggered-By: GH:brettcannon
* bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)Christian Heimes2021-10-252-4/+0
| | | | | | | | | | | | | The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible ``libm`` and no longer ship with workarounds for missing acosh, asinh, expm1, and log1p functions. The changeset also removes ``_math.c`` and moves the last remaining workaround into ``_math.h``. This simplifies static builds with ``Modules/Setup`` and resolves symbol conflicts. Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Brett Cannon <brett@python.org> Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45570: Simplify setup macros for pyexpat (GH-29159)Christian Heimes2021-10-222-2/+2
| | | | | | | | * ``HAVE_EXPAT_CONFIG_H`` is not used by our code and not used by system-wide expat header files * ``USE_PYEXPAT_CAPI`` is no longer used by our code * ``XML_POOR_ENTROPY`` should be defined in expat_config.h Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43974: Move Py_BUILD_CORE_MODULE into module code (GH-29157)Christian Heimes2021-10-221-1/+0
| | | | | | | | | | | | | | setup.py no longer defines Py_BUILD_CORE_MODULE. Instead every module defines the macro before #include "Python.h" unless Py_BUILD_CORE_BUILTIN is already defined. Py_BUILD_CORE_BUILTIN is defined for every module that is built by Modules/Setup. The PR also simplifies Modules/Setup. Makefile and makesetup already define Py_BUILD_CORE_BUILTIN and include Modules/internal for us. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-43851: Build SQLite with SQLITE_OMIT_AUTOINIT on Windows (GH-25414)Erlend Egeberg Aasland2021-10-191-1/+1
|
* bpo-35134: Add Include/cpython/longobject.h (GH-29044)Victor Stinner2021-10-192-0/+4
| | | | | | | | | | Move Include/longobject.h non-limited API to a new Include/cpython/longobject.h header file. Move the following definitions to the internal C API: * _PyLong_DigitValue * _PyLong_FormatAdvancedWriter() * _PyLong_FormatWriter()
* bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)Victor Stinner2021-10-192-0/+8
| | | | | | | | | | | | | Split header files to move the non-limited API to Include/cpython/: * Include/warnings.h => Include/cpython/warnings.h * Include/weakrefobject.h => Include/cpython/weakrefobject.h Exclude PyWeakref_GET_OBJECT() from the limited C API. It never worked since the PyWeakReference structure is opaque in the limited C API. Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the internal C API.
* bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975)Victor Stinner2021-10-152-4/+4
| | | | | | | | | Rename Include/namespaceobject.h to Include/internal/pycore_namespace.h. The _testmultiphase extension is now built with the Py_BUILD_CORE_MODULE macro defined to access _PyNamespace_Type. object.c: remove unused "pycore_context.h" include.
* bpo-45434: Remove Include/eval.h header file (GH-28973)Victor Stinner2021-10-152-4/+0
| | | | Move Include/eval.h content into Include/ceval.h and Include/cpython/ceval.h, and remove Include/eval.h.
* bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969)Victor Stinner2021-10-152-8/+4
| | | | Move the interpreteridobject.h header file from Include/ to Include/internal/. It only provides private functions.
* bpo-35134: Move classobject.h to Include/cpython/ (GH-28968)Victor Stinner2021-10-152-16/+16
| | | | | | | | | Move classobject.h, context.h, genobject.h and longintrepr.h header files from Include/ to Include/cpython/. Remove redundant "#ifndef Py_LIMITED_API" in context.h. Remove explicit #include "longintrepr.h" in C files. It's not needed, Python.h already includes it.
* bpo-35134: Move Include/cellobject.h to Include/cpython/ (GH-28964)Victor Stinner2021-10-152-4/+4
|
* po-35134: Move Include/funcobject.h to Include/cpython/ (GH-28958)Victor Stinner2021-10-152-4/+4
| | | Remove redundant "#ifndef Py_LIMITED_API" in funcobject.h.
* bpo-35134: Add Include/cpython/floatobject.h (GH-28957)Victor Stinner2021-10-142-0/+8
| | | | | Split Include/floatobject.h into sub-files: add Include/cpython/floatobject.h and Include/internal/pycore_floatobject.h.
* bpo-45229: Make tkinter tests discoverable (GH-28637)Serhiy Storchaka2021-10-131-2/+0
|
* bpo-45434: Remove pystrhex.h header file (GH-28923)Victor Stinner2021-10-132-4/+4
| | | | | | | | | | | | | | | Move Include/pystrhex.h to Include/internal/pycore_strhex.h. The header file only contains private functions. The following C extensions are now built with Py_BUILD_CORE_MODULE macro defined to get access to the internal C API: * _blake2 * _hashopenssl * _md5 * _sha1 * _sha3 * _ssl * binascii
* bpo-45375: Fix assertion failure due to searching for stdlib in unnormalised ↵Steve Dower2021-10-051-1/+3
| | | | paths (GH-28735)
* bpo-45020: Add more test cases for frozen modules. (gh-28664)Eric Snow2021-09-302-0/+40
| | | | | I've added a number of test-only modules. Some of those cases are covered by the recently frozen stdlib modules (and some will be once we add encodings back in). However, I figured we'd play it safe by having a set of modules guaranteed to be there during tests. https://bugs.python.org/issue45020
* Select correct tool platform when building on Windows ARM64 natively (GH-28491)Niyas Sait2021-09-271-3/+4
|
* bpo-45020: Fix some corner cases for frozen module generation. (gh-28538)Eric Snow2021-09-241-4/+4
| | | | | This also includes some cleanup in preparation for a PR to make the "make all" output less noisy. https://bugs.python.org/issue45020
* bpo-44848: Update Windows installer to use SQLite 3.36.0 (GH-27622)Erlend Egeberg Aasland2021-09-203-3/+3
|
* bpo-45055: Add retry when downloading externals on Windows (GH-28399)Steve Dower2021-09-201-1/+18
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45020: Freeze os, site, and codecs. (gh-28398)Eric Snow2021-09-172-0/+24
| | | https://bugs.python.org/issue45020
* bpo-45020: Drop the frozen .h files from the repo. (gh-28392)Eric Snow2021-09-162-0/+64
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. (This is essentially an un-revert of gh-28375.) https://bugs.python.org/issue45020
* bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when ↵Steve Dower2021-09-161-0/+3
| | | | building (GH-28393)
* bpo-45020: Revert "Drop the frozen .h files from the repo." (gh-28380)Eric Snow2021-09-152-64/+0
| | | | | gh-28375 broke one of the buildbots. Until I figure out why, I'm rolling the change back. https://bugs.python.org/issue45020
* bpo-45020: Drop the frozen .h files from the repo. (gh-28375)Eric Snow2021-09-152-0/+64
| | | | | The main advantage is that the files will no longer show up in diffs and PRs. That means, for a PR, the number of files / lines changed will more clearly reflect the actual change. https://bugs.python.org/issue45020
* bpo-45019: Clean up the frozen __hello__ module. (gh-28374)Eric Snow2021-09-152-5/+5
| | | | | Here's one more small cleanup that should have been in PR gh-28319. We eliminate stdout side-effects from importing the frozen __hello__ module, and update tests accordingly. We also move the module's source file into Lib/ from Toos/freeze/flag.py. https://bugs.python.org/issue45019
* bpo-45188: Windows now regenerates frozen modules at the start of build ↵Steve Dower2021-09-153-50/+175
| | | | | | | instead of late (GH-28322) This will enable us to drop the frozen module header files from the repository. It does currently cause many source files to be built twice, which just takes more time. For whoever comes to fix this in the future, the files shared between freeze_module and pythoncore should be put into a static library that is consumed by both.
* bpo-45124: Remove the bdist_msi command (GH-28195)Hugo van Kemenade2021-09-071-3/+0
| | | | The bdist_msi command, deprecated in Python 3.9, is now removed. Use bdist_wheel (wheel packages) instead.
* bpo-45022: Update libffi to 3.4.2 in Windows build (GH-28146)Steve Dower2021-09-033-6/+6
|
* bpo-45085: Remove the binhex module (GH-28117)Victor Stinner2021-09-021-2/+0
| | | | | | | | | | The binhex module, deprecated in Python 3.9, is now removed. The following binascii functions, deprecated in Python 3.9, are now also removed: * a2b_hqx(), b2a_hqx(); * rlecode_hqx(), rledecode_hqx(). The binascii.crc_hqx() function remains available.
* bpo-45019: Add a tool to generate list of modules to include for frozen ↵Eric Snow2021-08-305-25/+36
| | | | | | | modules (gh-27980) Frozen modules must be added to several files in order to work properly. Before this change this had to be done manually. Here we add a tool to generate the relevant lines in those files instead. This helps us avoid mistakes and omissions. https://bugs.python.org/issue45019
* bpo-45007: Update to OpenSSL 1.1.1l in Windows build and CI (GH-28009)Steve Dower2021-08-292-4/+4
|
* bpo-45022: Pin current libffi build to fixed version in preparation for ↵Steve Dower2021-08-273-9/+17
| | | | | upcoming update (GH-27982) Also improve the build script for libffi, which is not used as part of the regular build.
* Add tests for the C tokenizer and expose it as a private module (GH-27924)Pablo Galindo Salgado2021-08-241-0/+1
|
* Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)Steve Dower2021-08-031-4/+3
|
* bpo-44479: Do not regenerate files during a PGO build as it will invalidate ↵Steve Dower2021-07-291-2/+6
| | | | the profile. (GH-27460)
* bpo-44590: Lazily allocate frame objects (GH-27077)Mark Shannon2021-07-261-0/+1
| | | | | | | | | | | | | | * Convert "specials" array to InterpreterFrame struct, adding f_lasti, f_state and other non-debug FrameObject fields to it. * Refactor, calls pushing the call to the interpreter upward toward _PyEval_Vector. * Compute f_back when on thread stack, only filling in value when frame object outlives stack invocation. * Move ownership of InterpreterFrame in generator from frame object to generator object. * Do not create frame objects for Python calls. * Do not create frame objects for generators.
* bpo-44611: Use BCryptGenRandom instead of CryptGenRandom on Windows (GH-27168)Dong-hee Na2021-07-231-1/+1
|
* bpo-44353: Implement typing.NewType __call__ method in C (#27262)Yurii Karabas2021-07-222-0/+4
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Denis Laxalde <denis@laxalde.org>
* bpo-44479: Simplified LICENSE.txt regeneration in Windows build (GH-27056)Steve Dower2021-07-071-9/+9
|
* bpo-44479: Regenerate test_frozenmain.h and frozen_hello.h during build on ↵Steve Dower2021-07-053-29/+49
| | | | Windows (GH-26984)