Skip to content

MAINT: handle NPY_ALLOW_THREADS and related build option better #26016

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 1 commit into from
Mar 13, 2024

Conversation

rgommers
Copy link
Member

The option to disable threading in CPython was removed a long time ago (see python/cpython#3385); WITH_THREAD was kept defined for backwards compatibility, but can never change - so best to remove checking for it.

The docs still mentioned the old NPY_NOSMP environment variable, support for which was removed with the move to Meson. Instead, there is a disable-threading build option, so document that.

The option to disable threading in CPython was removed a long time ago
(see cpython#3385); `WITH_THREAD` was kept defined for backwards
compatibility, but can never change - so best to remove checking for
it.

The docs still mentioned the old `NPY_NOSMP` environment variable,
support for which was removed with the move to Meson. Instead, there
is a `disable-threading` build option, so document that.
@charris charris merged commit fd55435 into numpy:main Mar 13, 2024
@charris
Copy link
Member

charris commented Mar 13, 2024

Thanks Ralf.

@rgommers rgommers deleted the fix-thread-handling branch March 13, 2024 17:00
@rgommers rgommers added this to the 2.1.0 release milestone Mar 13, 2024
@charris charris changed the title MAINT: handle NPY_ALLOW_THREADS and related build option better MAINT: handle NPY_ALLOW_THREADS and related build option better Mar 15, 2024
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 15, 2024
@charris charris removed this from the 2.1.0 release milestone Mar 15, 2024
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