- worker.go: 为每个子进程创建 death pipe,Go 持有写端 - __init__.py: run() 中监听管道读端 EOF,Go 退出时立即终止子进程 - 解决 Ctrl+C / panic / SIGKILL 等场景下 Python worker 变成孤儿进程的问题 - Python 包版本升至 0.1.2
13 lines
268 B
TOML
13 lines
268 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "gobridge"
|
|
version = "0.1.2"
|
|
description = "Python 端库,配合 Go 侧 gobridge 使用"
|
|
requires-python = ">=3.10"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["gobridge"]
|