summaryrefslogtreecommitdiff
path: root/Makefile.pre.in
AgeCommit message (Collapse)AuthorLines
2024-03-11 [3.11] gh-115421: List all test/ subdirs in Makefile, and test them (GH-115813)Petr Viktorin-1/+5
This backports: - GH-115813 - GH-115422 Unlike on the main branch, new directories are added to the end, so they're a bit easier to patch out if a redistributor needs to do so. On main & 3.12, there's a special case for `idlelib/idle_test`; on 3.11 TESTSUBDIRS has several more entries that are not in `test/`. This backport ignores all of them (including idlelib). (The alternative would be list them, as additions to TEST_HOME_DIR. But that's probably too invasive; people might split stdlib up in surprising ways.) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-02-15[3.11] gh-108303: Move all `pydoc` related files to `test_pydoc` (GH-114506) ↵Nikita Sobolev-0/+1
(#115501) (cherry picked from commit ccc76c3e88647e416184bb1f5210b4e8946ae358)
2024-01-19[3.11] gh-108303: Move all doctest related files and tests to ↵Nikita Sobolev-0/+1
`Lib/test/test_doctest/` (GH-112109) (#114313) gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109)
2023-12-21[3.11] gh-112305: Fix check-clean-src to detect frozen_modules .h files. ↵Miss Islington (bot)-2/+4
(GH-113344) (#113347) gh-112305: Fix check-clean-src to detect frozen_modules .h files. (GH-113344) A typo left this check broken so many of us who do out-of-tree builds were seeing strange failures due to bad `Python/frozen_modules/*.h` files being picked up from the source tree and used at build time from different Python versions leading to errors like: `Fatal Python error: _PyImport_InitCore: failed to initialize importlib` Or similar once our build got to an "invoke the interpreter" bootstrapping step due to incorrect bytecode being embedded. (cherry picked from commit 103c4ea27464cef8d1793dab347f5ff3629dc243) Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-12-06[3.11] gh-108927: Include new dir test/regrtestdata in the installation ↵Serhiy Storchaka-0/+3
(GH-112765) (GH-112784) (cherry picked from commit f8c0198e3bfa2f6f65e426765a5efddd8ece78b0) Co-authored-by: Victor Stinner <vstinner@python.org>
2023-12-04[3.11] GH-112160: Pin to manifest of quay.io/tiran/cpython_autoconf (#112161)Seth Michael Larson-1/+3
2023-11-10[3.11] gh-108303: Install `Lib/test/configdata` (GH-111899) (#111945)Miss Islington (bot)-0/+1
gh-108303: Install `Lib/test/configdata` (GH-111899) (cherry picked from commit 65d6dc27156112ac6a9f722b7b62529c94e0344b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-31[3.11] gh-108303: Move all inspect test files to `test_inspect/` (GH-109607) ↵Nikita Sobolev-0/+1
(#111543)
2023-10-10[3.11] [3.12] gh-108303: Move all certificates to `Lib/test/certdata/` ↵Miss Islington (bot)-1/+2
(GH-109489) (GH-109682) (#110646) [3.12] gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (GH-109682) * gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (cherry picked from commit e57ecf6bbc59f999d27b125ea51b042c24a07bd9) Python 3.12 backport: update also `test_nntplib`. (cherry picked from commit c2d542b42cd109d81c0308f9c4437c38ac74d2e0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: T. Wouters <thomas@python.org>
2023-10-06[3.11] gh-103053: Fix make check-clean-src: check "python" program ↵Miss Islington (bot)-1/+2
(GH-110449) (#110454) gh-103053: Fix make check-clean-src: check "python" program (GH-110449) "make check-clean-src" now also checks if the "python" program is found in the source directory: fail with an error if it does exist. (cherry picked from commit a155f9f3427578ca5706d27e20bd0576f0395073) Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-05[3.11] gh-110429: Fix race condition in "make regen-all" (GH-110433) (#110439)Miss Islington (bot)-2/+2
gh-110429: Fix race condition in "make regen-all" (GH-110433) "make regen-pegen" now creates a temporary file called "parser.c.new" instead of "parser.new.c". Previously, if "make clinic" was run in parallel with "make regen-all", clinic may try but fail to open "parser.new.c" if the temporay file was removed in the meanwhile. (cherry picked from commit fb6c4ed2bbb2a867d5f0b9a94656e4714be5d9c2) Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-04[3.11] gh-109972: Split test_gdb.py into test_gdb package (#109977) (… ↵Victor Stinner-0/+1
(#110343) [3.12] gh-109972: Split test_gdb.py into test_gdb package (#109977) (#110339) gh-109972: Split test_gdb.py into test_gdb package (#109977) Split test_gdb.py file into a test_gdb package made of multiple tests, so tests can now be run in parallel. * Create Lib/test/test_gdb/ directory. * Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory. * Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py. * Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py. * Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select(). (cherry picked from commit 8f324b7ecd2df3036fab098c4c8ac185ac07b277) (cherry picked from commit e7a61d34b7897ac6cff53add2ec03309a5ff8350)
2023-09-21[3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata ↵Victor Stinner-0/+1
(GH-109265) (#109678) * gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) (cherry picked from commit 1110c5bc828218086f6397ec05a9312fb73ea30a) * gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314) (cherry picked from commit 42ab2cbd7b5e76e919b70883ae683e789dbd913d) --------- Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-21[3.11] gh-108303: Move `test_future` into its own test_future_stmt subdir ↵Victor Stinner-0/+1
(#109368) (#109680) gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368) (cherry picked from commit 82505dc351b2f7e37aa395218709b432d83292cd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-21[3.11] gh-108303: Create Lib/test/test_dataclasses/ directory (#108978) ↵Victor Stinner-0/+1
(#109675) gh-108303: Create Lib/test/test_dataclasses/ directory (#108978) Move test_dataclasses.py and its "dataclass_*.py" modules into the new Lib/test/test_dataclasses/ subdirectory. Backport to 3.11: update Lib/test/.ruff.toml. (cherry picked from commit 14d6e197cc56e5256d501839a4e66e3864ab15f0)
2023-09-06[3.11] gh-108740: Fix "make regen-all" race condition (#108741) (#109021)Victor Stinner-8/+11
gh-108740: Fix "make regen-all" race condition (#108741) Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. Backport notes: * Omit Doc/using/configure.rst changes. * no need to change "make clinic", it didn't run generate_global_objects.py script before. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a19ab62191c16ecb732cb4dcaede98a902)
2023-08-23[3.11] gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) (#108336)Victor Stinner-0/+1
gh-108303: Add Lib/test/test_cppext/ sub-directory (#108325) * Move test_cppext to its own directory * Rename setup_testcppext.py to setup.py * Rename _testcppext.cpp to extension.cpp * The source (extension.cpp) is now also copied by the test. (cherry picked from commit 21dda09600848ac280481f7c64f8d9516dc69bb2)
2023-08-22[3.11] gh-106016: Add Lib/test/test_module/ directory (GH-108293) (#108304)Miss Islington (bot)-0/+1
gh-106016: Add Lib/test/test_module/ directory (GH-108293) * Move Python scripts related to test_module to this new directory: good_getattr.py and bad_getattrX.py scripts. * Move Lib/test/test_module.py to Lib/test/test_module/__init__.py. (cherry picked from commit adfc118fdab66882599e01a84c22bd897055f3f1) Co-authored-by: Victor Stinner <vstinner@python.org>
2023-07-23[3.11] gh-75371: reformat Makefile.pre.in to accommodate for empty ↵Łukasz Langa-2/+1
FRAMEWORKALTINSTALLLAST (GH-107035) (#107050) in the case of an empty FRAMEWORKALTINSTALLLAST, this patch prevents leaving an astray linebreak and two tabs in the resulting Makefile. Before change: ``` .PHONY: commoninstall commoninstall: check-clean-src \ altbininstall libinstall inclinstall libainstall \ sharedinstall altmaninstall \ ``` After change (with empty FRAMEWORKALTINSTALLLAST): ``` .PHONY: commoninstall commoninstall: check-clean-src \ altbininstall libinstall inclinstall libainstall \ sharedinstall altmaninstall ``` (cherry picked from commit 9c38206925246ab919cf558ac069ae9458720ba7) Co-authored-by: Moritz Neeb <nt4u@kpvn.de>
2023-07-05[3.11] gh-104692: Include commoninstall as a prerequisite for bininstall ↵Jeffery To-1/+5
(GH-104693) (#105429) This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. . (cherry picked from commit 990cb3676c2edb7e5787372d6cbe360a73367f4c) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-04-28[3.11] gh-98822: Correct a few TESTSUBDIRS entries (GH-103970)Zachary Ware-3/+3
A few differences from the main branch were missed in GH-103946.
2023-04-27[3.11] gh-98822: Add missing test directories to TESTSUBDIRS (#103942) (#103946)Erlend E. Aasland-14/+48
2022-11-13[3.11] gh-98707: configure --with-system-libmpdec and --with-system-expat no ↵Erlend E. Aasland-3/+3
longer include vendored headers (GH-98711) (#99391) (cherry picked from commit 6abec1caffdba2e282b14fe57c6ce61974de4bbe) Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2022-11-02gh-97731: Specify the full path to the docs for `make docclean` (GH-98982)Miss Islington (bot)-1/+1
Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds. (cherry picked from commit 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f) Co-authored-by: Brett Cannon <brett@python.org>
2022-10-07[3.11] gh-96073: Fix installed tests by adding to Makefile.pre.in (#98071)Jelle Zijlstra-0/+1
[3.11] Fix installed tests by adding to Makefile.pre.in This was broken in #98045 but already fixed on main.
2022-10-04[3.11] gh-97731: fix distclean target to clean docs GH-97732 (#97844)Senthil Kumaran-3/+2
Backport gh-97731: fix distclean target to clean docs #97732 to 3.11
2022-09-13[3.11] gh-95853: Add script to automate WASM build (GH-95828, GH-95985, ↵Christian Heimes-2/+7
GH-96045, GH-96389, GH-96744) (GH-96749) Automate WASM build with a new Python script. The script provides several build profiles with configure flags for Emscripten flavors and WASI. The script can detect and use Emscripten SDK and WASI SDK from default locations or env vars. ``configure`` now detects Node arguments and creates HOSTRUNNER arguments for Node 16. It also sets correct arguments for ``wasm64-emscripten``.
2022-08-01[3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)Christian Heimes-0/+1
Co-authored-by: Brett Cannon <brett@python.org>. (cherry picked from commit 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae) Co-authored-by: Christian Heimes <christian@python.org>
2022-07-23gh-89758: Track all socket module dependencies (GH-95157)Miss Islington (bot)-1/+1
(cherry picked from commit 41a5b84eaf7c52d1d4aa0a8d3d135a09f5f7190e) Co-authored-by: Christian Heimes <christian@python.org>
2022-07-13gh-94759: Create LCOV report with branch coverage (GH-94793)Miss Islington (bot)-7/+8
(cherry picked from commit f5c02afaff43f4ed7f4ac74d7c90171e56c2b2d7) Co-authored-by: Christian Heimes <christian@python.org>
2022-06-29[3.11] gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413) ↵Christian Heimes-2/+2
(GH-94415) ``PY_STDMODULE_CFLAGS`` may contain include directories with system headers. This can break compiling with built-in libmpdec. Co-authored-by: Christian Heimes <christian@python.org>
2022-06-27[3.11] gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301) ↵Christian Heimes-1/+1
(GH-94317) Co-authored-by: Christian Heimes <christian@python.org>
2022-06-20gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938) (#94000)Victor Stinner-0/+1
Move the follow functions and type from frameobject.h to pyframe.h, so the standard <Python.h> provide frame getter functions: * PyFrame_Check() * PyFrame_GetBack() * PyFrame_GetBuiltins() * PyFrame_GetGenerator() * PyFrame_GetGlobals() * PyFrame_GetLasti() * PyFrame_GetLocals() * PyFrame_Type Remove #include "frameobject.h" from many C files. It's no longer needed. (cherry picked from commit 27b989403356ccdd47545a93aeab8434e9c69f21)
2022-06-18gh-84461: Fix pydebug Emscripten browser builds (GH-93982)Miss Islington (bot)-4/+4
wasm_assets script did not take the ABIFLAG flag of sysconfigdata into account. (cherry picked from commit 7a2cc35e1ca6808a735b90269756d5286077a152) Co-authored-by: Christian Heimes <christian@python.org>
2022-06-18gh-84461: Fix circulare dependency on BUILDPYTHON (GH-93977)Miss Islington (bot)-4/+7
(cherry picked from commit 084023ccbeb3bf54a2e19873c6a4b0bec7b617f6) Co-authored-by: Christian Heimes <christian@python.org>
2022-06-08[3.11] gh-93584: Make all install+tests targets depends on all (GH-93589) ↵Christian Heimes-12/+16
(GH-93603) All install targets use the "all" target as synchronization point to prevent race conditions with PGO builds. PGO builds use recursive make, which can lead to two parallel `./python setup.py build` processes that step on each others toes. "test" targets now correctly compile PGO build in a clean repo. (cherry picked from commit 243ed5439c32e8517aa745bc2ca9774d99c99d0f) Co-authored-by: Christian Heimes <christian@python.org>
2022-05-08[3.11] Add CI step to check changes in the exported ABI (#92442)Pablo Galindo Salgado-0/+8
2022-04-29gh-91324: Convert the stable ABI manifest to TOML (GH-92026)Petr Viktorin-2/+2
2022-04-28gh-84461: Add HOSTRUNNER for program to run Python executable (GH-91931)Ethan Smith-9/+11
`HOSTRUNNER` is a program which can be used to run `BUILDPYTHON` for the host platform (for example, `python.js` requires `node`). Also change depedencies from `build_all` to `all` so that targets which can't build everything (e.g. WASM) can still run `buildbottest` and `pythoninfo`. cc @tiran
2022-04-26gh-91719: Add pycore_opcode.h internal header file (#91906)Victor Stinner-1/+3
Move the following API from Include/opcode.h (public C API) to a new Include/internal/pycore_opcode.h header file (internal C API): * EXTRA_CASES * _PyOpcode_Caches * _PyOpcode_Deopt * _PyOpcode_Jump * _PyOpcode_OpName * _PyOpcode_RelativeJump
2022-04-26gh-64783: Fix signal.NSIG value on FreeBSD (#91929)Victor Stinner-0/+1
Fix signal.NSIG value on FreeBSD to accept signal numbers greater than 32, like signal.SIGRTMIN and signal.SIGRTMAX. * Add Py_NSIG constant. * Add pycore_signal.h internal header file. * _Py_Sigset_Converter() now includes the range of valid signals in the error message.
2022-04-22gh-91575: Add a script for generating data for case-insensitive matching in ↵Serhiy Storchaka-0/+6
re (GH-91660) Also test that all extra cases are in BMP.
2022-04-21gh-79315: Add Include/cpython/pythread.h header (#91798)Victor Stinner-0/+1
2022-04-21gh-79315: Add Include/cpython/modsupport.h header (#91797)Victor Stinner-0/+1
2022-04-15gh-91404: Use computed gotos and reduce indirection in re (#91495)Brandt Bucher-3/+4
2022-04-14gh-84461: Drop -sWASM, fix building tests for browser (GH-91530)Christian Heimes-2/+2
- drop unnecessary ``=1`` suffix from Emscripten flags - drop unnecessary ``-sWASM`` flag for side modules - rename ``build_platform`` to ``build_wasm``. I introduced the target for WASM builds a couple of months ago. - fix ``--enable-test-modules`` for browser builds
2022-04-12bpo-47152: Automatically regenerate sre_constants.h (GH-91439)Serhiy Storchaka-1/+8
* Move the code for generating Modules/_sre/sre_constants.h from Lib/re/_constants.py into a separate script Tools/scripts/generate_sre_constants.py. * Add target `regen-sre` in the makefile. * Make target `regen-all` depending on `regen-sre`.
2022-04-10bpo-40280: WASM docs and smaller browser builds (GH-32412)Christian Heimes-2/+3
Co-authored-by: Brett Cannon <brett@python.org>
2022-04-07bpo-35134: Remove the Include/code.h header file (GH-32385)Victor Stinner-1/+0
Remove the Include/code.h header file. C extensions should only include the main <Python.h> header file. Python.h includes directly Include/cpython/code.h instead.
2022-04-07bpo-35134: Add Include/cpython/setobject.h header (GH-32384)Victor Stinner-0/+1