Blosc / Blosc/python-blosc2

Add support for the free-threaded build

未关闭
#555 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
211
派生
62
平均合并
1 天 17 小时
30 天内合并 PR
6

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用 Python 3.14.2 的 free-threading 构建复现导入警告,并检查 blosc2.blosc2_ext 的构建和加载方式。阅读 py-free-threading.github.io 上的指南;在 free-threaded 构建中无需重新启用 GIL 即可导入 blosc2 时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。