setup.py 示例? [英] setup.py examples?

查看:81
本文介绍了setup.py 示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

学习本页后:

http://docs.python.org/distutils/builtdist.html

我希望找到一些 setup.py 文件进行研究,以便制作我自己的(目的是制作一个 Fedora rpm 文件).

I am hoping to find some setup.py files to study so as to make my own (with the goal of making a fedora rpm file).

s.o. 可以吗?社区为我指出了一些好的例子?

Could the s.o. community point me towards some good examples?

推荐答案

编写 setup.py 脚本的完整演练 此处.(有一些例子)

Complete walkthrough of writing setup.py scripts here. (with some examples)

如果您想要一个真实世界的示例,我可以向您指出几个主要项目的 setup.py 脚本.Django 是 这里,pyglet 是 这里.您可以浏览其他项目的源代码以获取名为 setup.py 的文件以获取更多示例.

If you'd like a real-world example, I could point you towards the setup.py scripts of a couple major projects. Django's is here, pyglet's is here. You can just browse the source of other projects for a file named setup.py for more examples.

这些不是简单的例子;我给的教程链接有那些.这些更复杂,但也更实用.

These aren't simple examples; the tutorial link I gave has those. These are more complex, but also more practical.

这篇关于setup.py 示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆