Add support for the free-threaded build

已關閉
#555 1 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 5 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
backend

研究方向

先使用 Python 3.14.2 的 free-threading 建置重現匯入警告,並檢查 blosc2.blosc2_ext 的建置與載入方式。閱讀 py-free-threading.github.io 上的指南;在 free-threaded 建置中不重新啟用 GIL 即可匯入 blosc2 時,就算完成。

由索引模型根據 Issue 內容生成。

描述

blosc2 ships free-threaded wheels, but they re-enable the GIL on import:

goldbaum at Nathans-MBP in ~
○  python
Python 3.14.2 free-threading build (main, Dec  8 2025, 15:41:12) [Clang 17.0.0 (clang-1700.4.4.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
i>>> import blosc2
<frozen importlib._bootstrap>:491: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'blosc2.blosc2_ext', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.

See https://py-free-threading.github.io for more information about the free-threaded build and how to support it.

主要語言
Python
星號
214
分支
72
平均合併
2 天 19 小時
30 天內合併 PR
6

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Blosc/python-blosc2 的其他 Issue

查看 Blosc/python-blosc2 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。