summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-108325) (#108328)Miss Islington (bot)2023-08-221-43/+0
| | | | | | | | | | | gh-108303: Add Lib/test/test_cppext/ sub-directory (GH-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) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-95299: Rework test_cppext.py to not invoke setup.py directly (#103316)Pradyun Gedam2023-04-131-8/+3
| | | | | | | | | | | | | | | | | * gh-95299: Rework test_cppext.py to not invoke setup.py directly * Add tests/cppextdata data to `TESTSUBDIRS` * Revert "Add tests/cppextdata data to `TESTSUBDIRS`" This reverts commit 635492e53954fb0fc2a2875c8961bde99266c48d. * Revert "gh-95299: Rework test_cppext.py to not invoke setup.py directly" This reverts commit 41c5a667b5de7070bbde5780f1c124f96863c91d. * Build and install the extension in a temporary directory instead * Pull in wheels for setuptools and wheel for testing extension builds
* gh-94731: Revert to C-style casts for _Py_CAST (GH-94782)Petr Viktorin2022-07-141-5/+0
| | | Co-authored-by: da-woods <dw-git@d-woods.co.uk>
* gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)Petr Viktorin2022-07-121-1/+1
| | | | | | | | | This is a quick-and-dirty way to run the C++ tests. It can definitely be improved in the future, but it should fail when things go wrong. - Run test functions on import (yes, this can definitely be improved) - Fudge setuptools metadata (name & version) to make the extension installable - Install and import the extension in test_cppext
* gh-91321: Fix test_cppext for C++03 (#93902)Victor Stinner2022-06-161-2/+4
| | | | Don't build _testcppext.cpp with -Wzero-as-null-pointer-constant when testing C++03: only use this compiler flag with C++11.
* gh-91321: Fix compatibility with C++ older than C++11 (#93784)Victor Stinner2022-06-141-5/+14
| | | | | Fix the compatibility of the Python C API with C++ older than C++11. _Py_NULL is only defined as nullptr on C++11 and newer.
* gh-92584: test_cppext uses setuptools (#92639)Victor Stinner2022-05-121-0/+42
Rewrite test_cppext to run in a virtual environment and to build the C++ extension with setuptools rather than distutils.