Skip to content

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

Merged
charris merged 2 commits into
numpy:maintenance/1.26.xfrom
charris:backport-25141
Nov 20, 2023
Merged

TST: Explicitly pass NumPy path to cython during tests (also speed them up)#25203
charris merged 2 commits into
numpy:maintenance/1.26.xfrom
charris:backport-25141

Conversation

@charris
Copy link
Copy Markdown
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