Skip to content

MAINT: handle NPY_ALLOW_THREADS and related build option better - #26036

Merged
charris merged 1 commit into
numpy:maintenance/2.0.xfrom
charris:backport-26016
Mar 15, 2024
Merged

MAINT: handle NPY_ALLOW_THREADS and related build option better#26036
charris merged 1 commit into
numpy:maintenance/2.0.xfrom
charris:backport-26016

Conversation

@charris

@charris charris commented Mar 15, 2024

Copy link
Copy Markdown
Member

Backport of #26016.

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 3234e06 into numpy:maintenance/2.0.x Mar 15, 2024
@charris
charris deleted the backport-26016 branch March 15, 2024 18:18
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