Skip to content

chore: depend on cpython to ensure GIL-enabled Python - #1158

Merged
olemke merged 1 commit into
atmtools:mainfrom
olemke:fix-python-arm
Aug 3, 2026
Merged

chore: depend on cpython to ensure GIL-enabled Python#1158
olemke merged 1 commit into
atmtools:mainfrom
olemke:fix-python-arm

Conversation

@olemke

@olemke olemke commented Aug 3, 2026

Copy link
Copy Markdown
Member

Starting with Python 3.14, conda-forge ships the free-threaded (no-GIL) build as the default python package. CMake's find_package(Python) does not recognize this freethreading variant by default, so an ARTS configuration against it fails or selects an interpreter our nanobind-based bindings cannot use. We require the traditional GIL-enabled interpreter.
The clean fix would be to depend on the python-gil package, which explicitly pins the GIL build; however, that package does not exist for Python versions below 3.14, so adding it would break environment creation on 3.12 and 3.13. Depending on cpython instead achieves the same effect. It pulls in the GIL-enabled CPython interpreter while remaining installable across all currently supported Python versions, making it a workaround that works universally rather than only on 3.14+.

CMake requires cpython on arm platforms to properly detect the
Python interpreter. Add it to both linux and mac dev environments.
@olemke olemke changed the title fix: add cpython to dev environments for arm cmake detection chore: depend on cpython to ensure GIL-enabled Python Aug 3, 2026
@olemke
olemke merged commit cd4cff6 into atmtools:main Aug 3, 2026
9 checks passed
@olemke
olemke deleted the fix-python-arm branch August 3, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant