【问题标题】:Python setuptools/distutils custom build for the `extra` package from GO sourcePython setuptools/distutils 自定义构建来自 GO 源的 `extra` 包
【发布时间】:2018-12-07 22:32:24
【问题描述】:

我正在尝试创建一个 Python 包,该包依赖于从 Go 源代码编译的库。

我正在按照以下说明进行操作: Python setuptools/distutils custom build for the `extra` package with Makefile 这个想法是编译 Go 代码以创建库,然后将该库提供给设置工具以构建 Python 扩展。

该库是根据 make 规则编译的,就像上面的链接一样。 编译时出现此错误:

供应商/golang.org/x/sys/unix/syscall_linux_gc.go:10:6: 缺失 函数体

【问题讨论】:

  • 欢迎来到 Stack Overflow!请edit 在此处添加有意义的代码和问题描述。发布 minimal reproducible example 来证明您的问题将帮助您获得更好的答案。谢谢!
  • 解决了添加 *.go 和 *.s 到 manifest。

标签: python go installation


【解决方案1】:

解决了添加 *.go 和 *.s 到清单:

recursive-include . *.s
recursive-include . *.go

【讨论】:

    最近更新 更多