How do I create a pip installable project?

前端 未结 4 1421
天涯浪人
天涯浪人 2021-02-01 17:36

How do I create a pip installable project? How do you register with pip?

What meta data config should all projects have in order to allow integration and easy import.

4条回答
  •  醉酒成梦
    2021-02-01 18:16

    Or, if you're feeling fancy (read: lazy)...

    1. sudo easy_install PasteScript
    2. paster create mynewpackage
    3. answer the questions!
    4. cd mynewpackage
    5. python setup.py sdist
    6. python setup.py register
    7. answer the questions!

    Seems like more steps, but the PasteScript package handles a lot of the dirty work. Do yourself a favor and install it, use it, and never look back ;)

提交回复
热议问题