summaryrefslogtreecommitdiffstats
path: root/Tools/build
Commit message (Collapse)AuthorAgeFilesLines
* gh-127303: Add docs for token.EXACT_TOKEN_TYPES (#127304)Илья Любавский2024-11-291-1/+2
| | | | | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* GH-89435: os.path should not be a frozen module (#126924)Filipe Laíns 🇵🇸2024-11-221-3/+0
|
* gh-89640: Pull in update to float word order detection in autoconf-archive ↵Hood Chatham2024-11-131-1/+1
| | | | (#126747)
* gh-126623: Update libexpat to 2.6.4, make future updates easier (GH-126792)Seth Michael Larson2024-11-131-0/+28
| | | Update libexpat to 2.6.4, make future updates easier.
* gh-89640: properly detect float word ordering on Linux (#125571)Erlend E. Aasland2024-10-261-1/+1
| | | autoconf-archive patch by Dan Amelang.
* gh-125741: Update `build.yml` for the new check_autoconf_regen job (#125772)Adam Turner2024-10-211-1/+1
|
* gh-124612: Update autoconf container image (#125320)Donghee Na2024-10-111-1/+1
|
* gh-124612: Use ghcr.io/python/autoconf instead of public image (#124657)Donghee Na2024-10-091-4/+2
| | | | | * gh-124612: Use ghcr.io/python/autoconf instead of public image * Update
* generate_global_objects.py: Fix name of macro in error message (#124464)Jelle Zijlstra2024-09-271-2/+2
| | | _PyID does not exist but _Py_ID does.
* Lint and format Tools/build/check-warnings.py (#124382)Hugo van Kemenade2024-09-232-7/+33
|
* gh-124190: Ignore files directories check warning tooling (#124193)Nate Ohlson2024-09-183-47/+104
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-124191: Disable -Wconversion in enable safety (gh-124192)Nate Ohlson2024-09-182-474/+5
|
* gh-124064: Fix -Wconversion warnings in Parser/pegen.c (#124181)Victor Stinner2024-09-172-2/+0
|
* gh-124064: Fix -Wconversion warnings in pycore_{long,object}.h (#124177)Victor Stinner2024-09-172-10/+4
| | | | Change also the fix for pycore_gc.h and pycore_stackref.h: declare constants as uintptr_t, rather than casting constants.
* gh-124064: Fix -Wconversion warnings in pycore_{gc,list,stackref}.h (#124174)Victor Stinner2024-09-172-5/+0
|
* Tools/build/stable_abi.py: Improve ergonomics (GH-105355)Petr Viktorin2024-09-171-5/+10
| | | | | | | | | * Tools/build/stable_abi.py: Improve ergonomics - Make the manifest file argument optional - Output resolved paths with --list (getting rid of `../../`) - Mention --all or --generate-all if no actions are specified * Don't hardcode Misc/stable_abi.toml in Makefile, rely on the default
* gh-124064: Make warning emitting compiler options opt-in (#124070)Nate Ohlson2024-09-163-94/+561
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Revert "gh-112301: Enable warning emitting options and ignore warnings in CI ↵Hugo van Kemenade2024-09-133-548/+85
| | | | (#123020)" (#124065)
* gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)Nate Ohlson2024-09-133-85/+548
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-123892: Add "_wmi" to sys.stdlib_module_names (#123893)Victor Stinner2024-09-101-0/+1
|
* gh-123458: Skip SBOM generation if no git repository is detected (#123507)Seth Michael Larson2024-09-021-0/+18
|
* gh-112301: Add warning count to warning check tooling (#122711)Nate Ohlson2024-08-143-14/+44
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-99108: Add HACL* Blake2 implementation to hashlib (GH-119316)Jonathan Protzenko2024-08-131-3/+0
| | | | | | | This replaces the existing hashlib Blake2 module with a single implementation that uses HACL\*'s Blake2b/Blake2s implementations. We added support for all the modes exposed by the Python API, including tree hashing, leaf nodes, and so on. We ported and merged all of these changes upstream in HACL\*, added test vectors based on Python's existing implementation, and exposed everything needed for hashlib. This was joint work done with @R1kM. See the PR for much discussion and benchmarking details. TL;DR: On many systems, 8-50% faster (!) than `libb2`, on some systems it appeared 10-20% slower than `libb2`.
* gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952)Eric Snow2024-08-131-0/+9
| | | As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately.
* gh-112301: Add macOS warning tracking tooling (#122211)Nate Ohlson2024-08-062-53/+111
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Fix syntax in generate_re_casefix.py (#122699)Jelle Zijlstra2024-08-061-2/+2
| | | This was broken in gh-97963.
* gh-112301: Add argument aliases and tee compiler output for check warnings ↵Nate Ohlson2024-07-301-1/+4
| | | | | (GH-122465) Also remove superfluous shebang from the warning check script
* gh-122044: Don't error during gitignore filtering with no files (#122045)Seth Michael Larson2024-07-271-0/+4
|
* gh-112301: Compiler warning management tooling (#121730)Nate Ohlson2024-07-272-0/+198
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-121970: Rewrite the C-API annotations extension (#121985)Adam Turner2024-07-191-8/+15
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-113993: Allow interned strings to be mortal, and fix related issues ↵Petr Viktorin2024-06-211-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-120520) * Add an InternalDocs file describing how interning should work and how to use it. * Add internal functions to *explicitly* request what kind of interning is done: - `_PyUnicode_InternMortal` - `_PyUnicode_InternImmortal` - `_PyUnicode_InternStatic` * Switch uses of `PyUnicode_InternInPlace` to those. * Disallow using `_Py_SetImmortal` on strings directly. You should use `_PyUnicode_InternImmortal` instead: - Strings should be interned before immortalization, otherwise you're possibly interning a immortalizing copy. - `_Py_SetImmortal` doesn't handle the `SSTATE_INTERNED_MORTAL` to `SSTATE_INTERNED_IMMORTAL` update, and those flags can't be changed in backports, as they are now part of public API and version-specific ABI. * Add private `_only_immortal` argument for `sys.getunicodeinternedsize`, used in refleak test machinery. * Make sure the statically allocated string singletons are unique. This means these sets are now disjoint: - `_Py_ID` - `_Py_STR` (including the empty string) - one-character latin-1 singletons Now, when you intern a singleton, that exact singleton will be interned. * Add a `_Py_LATIN1_CHR` macro, use it instead of `_Py_ID`/`_Py_STR` for one-character latin-1 singletons everywhere (including Clinic). * Intern `_Py_STR` singletons at startup. * For free-threaded builds, intern `_Py_LATIN1_CHR` singletons at startup. * Beef up the tests. Cover internal details (marked with `@cpython_only`). * Add lots of assertions Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com>
* gh-120417: Remove unused imports in Tools (#120623)Victor Stinner2024-06-171-2/+2
|
* gh-112844: Update CPE references for external dependencies (#118521)Seth Michael Larson2024-05-201-1/+15
|
* gh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)Seth Michael Larson2024-04-301-3/+18
|
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-241-3/+0
| | | See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.
* gh-116303: Skip test module dependent tests if test modules are unavailable ↵Erlend E. Aasland2024-04-031-1/+4
| | | | (#117341)
* gh-99108: Update and check HACL* version information (GH-117295)Seth Michael Larson2024-03-271-0/+14
| | | * Update and check HACL* version information
* gh-108716: Cleanup remaining deepfreeze infrastructure (#116919)Guido van Rossum2024-03-181-77/+2
| | | | | Keep Tools/build/deepfreeze.py around (we may repurpose it for deepfreezing non-code objects), and keep basic "clean" targets that remove the output of former deep-freeze activities, to keep the build directories of current devs clean.
* gh-116417: Add _testlimitedcapi C extension (#116419)Victor Stinner2024-03-071-0/+1
| | | | | | | | | | | | | Add a new C extension "_testlimitedcapi" which is only built with the limited C API. Move heaptype_relative.c and vectorcall_limited.c from Modules/_testcapi/ to Modules/_testlimitedcapi/. * configure: add _testlimitedcapi test extension. * Update generate_stdlib_module_names.py. * Update make check-c-globals. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* chore: fix typos (#116345)cui fliter2024-03-051-1/+1
| | | Signed-off-by: cui fliter <imcusg@gmail.com>
* gh-112844: Add SBOM for external dependencies (#115789)Seth Michael Larson2024-02-291-17/+91
|
* gh-115773: Add tests to exercise the _Py_DebugOffsets structure (#115774)Pablo Galindo Salgado2024-02-281-0/+1
|
* gh-112302: Move pip SBOM discovery to release-tools (#115360)Seth Michael Larson2024-02-141-251/+0
|
* gh-115399: Upgrade bundled libexpat to 2.6.0 (#115431)Seth Michael Larson2024-02-141-1/+4
|
* gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (#115038)Seth Michael Larson2024-02-061-5/+7
|
* GH-80789: Get rid of the ``ensurepip`` infra for many wheels (#109245)Sviatoslav Sydorenko (Святослав Сидоренко)2024-01-301-5/+1
| | | | | | Co-authored-by: vstinner@python.org Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* gh-91325: Skip Stable ABI checks with Py_TRACE_REFS special build (GH-92046)Petr Viktorin2024-01-291-9/+10
| | | | | | Skip Stable ABI checks with Py_TRACE_REFS special build This build is not compatible with Py_LIMITED_API nor with the stable ABI.
* gh-114250: Fetch metadata for pip and its vendored dependencies from PyPI ↵Seth Michael Larson2024-01-261-50/+213
| | | | (#114450)
* GH-112354: `END_FOR` instruction to only pop one value. (GH-114247)Mark Shannon2024-01-241-0/+8
| | | | * Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops.
* gh-114178: Fix generate_sbom.py for out-of-tree builds (#114179)Erlend E. Aasland2024-01-171-0/+1
|