mirror of
https://github.com/python/cpython.git
synced 2025-11-08 09:32:01 +00:00
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 ec5db539b9)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
3c91f42918
commit
ffbd6ae37c
3 changed files with 56 additions and 17 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue