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

Skip to content

Make CI fail if a MismatchCAPIWarning is emitted at build time #12415

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

Closed
eric-wieser opened this issue Nov 19, 2018 · 1 comment
Closed

Make CI fail if a MismatchCAPIWarning is emitted at build time #12415

eric-wieser opened this issue Nov 19, 2018 · 1 comment

Comments

@eric-wieser
Copy link
Member

Raised in #12412

@rgommers
Copy link
Member

This was done quite a while ago I believe.

In numpy/core/meson.build:

# Check whether we have a mismatch between the set C API VERSION and the
# actual C API VERSION. Will raise a MismatchCAPIError if so.
r = run_command(
  'code_generators/verify_c_api_version.py', '--api-version', C_API_VERSION,
  check: true
)

And numpy/core/code_generators/verify_c_api_version.py seems to always raise an exception if a mismatch is detected. Hence closing. Thanks Eric.

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

No branches or pull requests

2 participants