简体   繁体   中英

How can I package python source code?

For example, I have a lots of .py file, which can say it is my own library, install of zip all to share my friends, can I have something like .jar in java to package all the classes in a one single file for sharing? Thanks.

Try reading http://guide.python-distribute.org/creation.html , it will walk you through the process. You don't need the uploading part, unless you want to share it on PyPi, but remaining guide should be helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM