Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-92906: Enable test_cext and test_cppext on Windows #117000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 19, 2024

On Windows in release mode, the test_cext and test_cppext can now build C and C++ extensions.

  • test_cext now also builds the C extension without options.
  • test_cppext now also builds the C++ extension without options.
  • Add C++14 test to test_cppext; C++11 is not supported by MSVC.
  • Make setup_venv_with_pip_setuptools_wheel() quiet when support.verbose is false. Only show stdout and stderr on failure.

On Windows in release mode, the test_cext and test_cppext can now
build C and C++ extensions.

* test_cext now also builds the C extension without options.
* test_cppext now also builds the C++ extension without options.
* Add C++14 test to test_cppext; C++11 is not supported by MSVC.
* Make setup_venv_with_pip_setuptools_wheel() quiet when
  support.verbose is false. Only show stdout and stderr on failure.
@vstinner vstinner enabled auto-merge (squash) March 19, 2024 13:36
@vstinner vstinner merged commit a114d08 into python:main Mar 19, 2024
@vstinner vstinner deleted the testcapi_windows branch March 19, 2024 14:03
subprocess.run(cmd, check=True)
else:
subprocess.run(cmd,
stdout=subprocess.PIPE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can block on large output. Should not it be DEVNUL?

Copy link
Member Author

@vstinner vstinner Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would it block, .run() consumes the ouput, no? I want to see output if the build fails (check=True).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, then sorry.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's output to see the output when something goes wrong :-)

vstinner added a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
…17000)

On Windows in release mode, the test_cext and test_cppext can now
build C and C++ extensions.

* test_cext now also builds the C extension without options.
* test_cppext now also builds the C++ extension without options.
* Add C++14 test to test_cppext; C++11 is not supported by MSVC.
* Make setup_venv_with_pip_setuptools_wheel() quiet when
  support.verbose is false. Only show stdout and stderr on failure.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…17000)

On Windows in release mode, the test_cext and test_cppext can now
build C and C++ extensions.

* test_cext now also builds the C extension without options.
* test_cppext now also builds the C++ extension without options.
* Add C++14 test to test_cppext; C++11 is not supported by MSVC.
* Make setup_venv_with_pip_setuptools_wheel() quiet when
  support.verbose is false. Only show stdout and stderr on failure.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…17000)

On Windows in release mode, the test_cext and test_cppext can now
build C and C++ extensions.

* test_cext now also builds the C extension without options.
* test_cppext now also builds the C++ extension without options.
* Add C++14 test to test_cppext; C++11 is not supported by MSVC.
* Make setup_venv_with_pip_setuptools_wheel() quiet when
  support.verbose is false. Only show stdout and stderr on failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants