AutoCython-zhang 2.3.7__tar.gz → 2.3.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/_version.py +1 -1
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/obfuscate.py +5 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/PKG-INFO +3 -1
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/PKG-INFO +3 -1
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/README.md +2 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/AutoCython.py +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/__init__.py +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/compile.py +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/run_tasks.py +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython/tools.py +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/SOURCES.txt +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/dependency_links.txt +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/entry_points.txt +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/requires.txt +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/top_level.txt +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/LICENSE +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/MANIFEST.in +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/pyproject.toml +0 -0
- {autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/setup.cfg +0 -0
|
@@ -223,6 +223,11 @@ def _collect_function_like_free_refs(node, local_names):
|
|
|
223
223
|
if name in local_names and name not in nested_locals and name not in global_names:
|
|
224
224
|
free.add(name)
|
|
225
225
|
|
|
226
|
+
# ``nonlocal`` 声明的变量即使只被 Store(如 current_tokens = 0)使用,
|
|
227
|
+
# 也必须视为外层闭包引用。若外层变量被重命名而 nonlocal 声明仍保留原名,
|
|
228
|
+
# Cython 会在编译期报 ``no binding for nonlocal ... found``。
|
|
229
|
+
free.update(nonlocal_names & local_names)
|
|
230
|
+
|
|
226
231
|
free.update(_collect_nested_free_refs(body, local_names))
|
|
227
232
|
return free
|
|
228
233
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AutoCython-zhang
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.8
|
|
4
4
|
Summary: 自动Cython,使用Cython批量编译.py文件为.pyd文件!
|
|
5
5
|
Author-email: zhang_gavin <qq814608@163.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -50,6 +50,8 @@ pip install AutoCython-zhang
|
|
|
50
50
|
|
|
51
51
|
> 当前编译链要求 `Cython>=3,<4`。该约束用于避免旧版 Cython 在编译后破坏 `Pydantic` / `FastAPI` / `dataclass` 等依赖运行时注解的框架行为。
|
|
52
52
|
|
|
53
|
+
> v2.3.8 修复了 `nonlocal` 闭包变量在混淆重命名后无法被 Cython 绑定的问题,适用于包含内层 flush/helper 函数的项目构建。
|
|
54
|
+
|
|
53
55
|
### 依赖
|
|
54
56
|
|
|
55
57
|
| 包 | 用途 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AutoCython-zhang
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.8
|
|
4
4
|
Summary: 自动Cython,使用Cython批量编译.py文件为.pyd文件!
|
|
5
5
|
Author-email: zhang_gavin <qq814608@163.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -50,6 +50,8 @@ pip install AutoCython-zhang
|
|
|
50
50
|
|
|
51
51
|
> 当前编译链要求 `Cython>=3,<4`。该约束用于避免旧版 Cython 在编译后破坏 `Pydantic` / `FastAPI` / `dataclass` 等依赖运行时注解的框架行为。
|
|
52
52
|
|
|
53
|
+
> v2.3.8 修复了 `nonlocal` 闭包变量在混淆重命名后无法被 Cython 绑定的问题,适用于包含内层 flush/helper 函数的项目构建。
|
|
54
|
+
|
|
53
55
|
### 依赖
|
|
54
56
|
|
|
55
57
|
| 包 | 用途 |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{autocython_zhang-2.3.7 → autocython_zhang-2.3.8}/AutoCython_zhang.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|