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

Skip to content

TST: Explicitly pass NumPy path to cython during tests (also speed them up) #25203

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
Nov 20, 2023

Conversation

charris
Copy link
Member

@charris charris commented Nov 20, 2023

Backport of #25141.

This mainly injects the -I into the cython build in meson by fetching the actual numpy directory during the build to paper over gh-25135.

It clearly isn't a fix, since it is probably a Cython issue (or maybe an issue with the meson in-place build setup).

I also modified the building fixture to only run once, the tests are ridiculously slow otherwise (there were much fewer tests not long ago).

This papers over numpygh-25135, it doesn't fix it, since we are finding
the right NumPy, Cython should be finding the right pyd files also
(whether this is a NumPy or a Cython issue).
@charris charris added 05 - Testing 08 - Backport Used to tag backport PRs labels Nov 20, 2023
@charris charris added this to the 1.26.3 release milestone Nov 20, 2023
@charris charris changed the title Backport 25141 TST: Explicitly pass NumPy path to cython during tests (also speed them up) Nov 20, 2023
@charris charris merged commit dcea252 into numpy:maintenance/1.26.x Nov 20, 2023
@charris charris deleted the backport-25141 branch November 20, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
05 - Testing 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants