Skip to content

gh-92584: test_cppext uses setuptools - #92639

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:test_cppext_setuptools
May 12, 2022
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:test_cppext_setuptools

Conversation

@vstinner

Copy link
Copy Markdown
Member

Rewrite test_cppext to run in a virtual environment and to build the
C++ extension with setuptools rather than distutils.

Rewrite test_cppext to run in a virtual environment and to build the
C++ extension with setuptools rather than distutils.
@vstinner

Copy link
Copy Markdown
Member Author

If this approach works and is accepted, we can use the same for test_peg_generator.

@FFY00

FFY00 commented May 11, 2022

Copy link
Copy Markdown
Member

What happens if CPython for some reason breaks setuptools?

@vstinner

Copy link
Copy Markdown
Member Author

What happens if CPython for some reason breaks setuptools?

The test fails which is a good thing :-)

@vstinner
vstinner merged commit 4e28377 into python:main May 12, 2022
@vstinner
vstinner deleted the test_cppext_setuptools branch May 12, 2022 22:20
@vstinner

Copy link
Copy Markdown
Member Author

Let's try and see how it goes :-)

@vstinner

Copy link
Copy Markdown
Member Author

Let's try and see how it goes :-)

It fails when _ctypes is not available: #92820

@FFY00: An example of failing setuptools :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants