python - 如何为 twistd/twisted 插件制作 ubuntu/debian 包?

标签 python ubuntu debian twisted packaging

作为 How do I write a setup.py for a twistd/twisted plugin that works with setuptools, distribute, etc? 的后续行动,如何为一个扭曲的插件制作一个 debian 包?

假设 setup.py 已正确编写,使用 cdbs/python-central/dh_python2 应该就可以了,但到目前为止我运气不太好。

这些工具的诀窍在于它们基本上运行“python setup.py install --root=”然后打包任何以“”结尾的内容,所以也许一旦正确回答了上一个问题,那么这个问题就变得没有实际意义了?

这里有人成功为 debian 打包了一个扭曲的插件吗?

最佳答案

显然问题出在“python-support”上,当涉及到扭曲的插件时,它显然被破坏了。

This message from Ubuntu's Matthias Klose解释问题并提供解决方案:

packaging of twisted plugins with python-support is broken by design. Even python policy mentions explicitly that you should use the same packaging helper for packages sharing the same python namespace.

You should use dh_python2 for that, or (deprecated) build with dh_pycentral using `include-links'.

-- Matthias Klose

关于python - 如何为 twistd/twisted 插件制作 ubuntu/debian 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7275759/

相关文章:

linux - 从 ubuntu 客户端远程访问 debian 服务器

python - 连接列表列表中的两个字符串

linux - 让 RabbitMQ 自动运行?

networking - Hadoop 节点在一段时间后死亡(崩溃)

ubuntu - 设置 make 总是同时做 8 个工作

go - 解构通知make[1] : go: Command not found

python - 在python中对一串数据的文件类型进行指纹识别

python - 如何替换 "from IPython.kernel import KernelManager"?

Python Anywhere 对 MySQL 数据库的访问被拒绝

linux - 如何在 Debian 8 上安装 Mono 4.0.1?