作为 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/