setup.py examples?

后端 未结 8 1760
庸人自扰
庸人自扰 2020-12-12 11:06

After studying this page:

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

I am hoping to find some setup.py files to study so as to make my own (with the goa

相关标签:
8条回答
  • 2020-12-12 11:36

    Minimal example

    from setuptools import setup, find_packages
    
    
    setup(
        name="foo",
        version="1.0",
        packages=find_packages(),
    )
    

    More info in docs

    0 讨论(0)
  • 2020-12-12 11:37

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

    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.

    0 讨论(0)
提交回复
热议问题