summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-07-12 15:06:05 (GMT)
committerGitHub <noreply@github.com>2022-07-12 15:06:05 (GMT)
commitec5db539b9df99c8b96149768dc2e8598dce2afa (patch)
treecd824cac3ad450310b9c756e6a7f728453b830d5 /Lib/test/setup_testcppext.py
parentcfafd3adf8c3bb73881081f721e77ebfc94431ea (diff)
downloadcpython-ec5db539b9df99c8b96149768dc2e8598dce2afa.zip
cpython-ec5db539b9df99c8b96149768dc2e8598dce2afa.tar.gz
cpython-ec5db539b9df99c8b96149768dc2e8598dce2afa.tar.bz2
gh-94751: Install, import and run the test C++ extension (MVP) (GH-94754)
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
Diffstat (limited to 'Lib/test/setup_testcppext.py')
-rw-r--r--Lib/test/setup_testcppext.py2
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__":