简体   繁体   中英

Python Packaging - Distutils for a program

I understand distutils is the defacto standard for the module installation world, using the common

setup.py install

But what if I don't want to install my program as a module but instead as a program, that can be executed by the user?

If I'm not being clear I'm very sorry but feel free to ask more questions. Thanks!

I'd hope that you're structuring your code so that the bulk of it is modular and could be imported into other code. In that structure than your application is a wrapper between the program's command-line and/or other user interfaces and the functionality provided by your modules.

That said, here's a pointer to the relevant documentation on Installing Scripts .

You mean as an.exe? Use cx_freeze or py2exe.

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