diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-13 09:09:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 09:09:06 (GMT) |
commit | ffbd6ae37c427061adae09956cd9388c86264bb7 (patch) | |
tree | a4dabe84300282838035c278b6d3ed25d573391b /Lib/test/setup_testcppext.py | |
parent | 3c91f429181ca9620ffcf049c1e8d5039e9691ee (diff) | |
download | cpython-ffbd6ae37c427061adae09956cd9388c86264bb7.zip cpython-ffbd6ae37c427061adae09956cd9388c86264bb7.tar.gz cpython-ffbd6ae37c427061adae09956cd9388c86264bb7.tar.bz2 |
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754) (#94780)
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
(cherry picked from commit ec5db539b9df99c8b96149768dc2e8598dce2afa)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Lib/test/setup_testcppext.py')
-rw-r--r-- | Lib/test/setup_testcppext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/setup_testcppext.py b/Lib/test/setup_testcppext.py index 892e24a..ae81e33 100644 --- a/Lib/test/setup_testcppext.py +++ b/Lib/test/setup_testcppext.py @@ -46,7 +46,7 @@ def main(): sources=[SOURCE], language='c++', extra_compile_args=cppflags) - setup(name=name, ext_modules=[cpp_ext]) + setup(name='internal' + name, version='0.0', ext_modules=[cpp_ext]) if __name__ == "__main__": |