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 don't think the distutils manual adequately covers this use case. I found this reference which I think is much more informative: digitalocean.com/community/tutorials/….Mark E. Haase– Mark E. Haase2014年07月25日 19:55:40 +00:00Commented Jul 25, 2014 at 19:55
2 Answers 2
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.
4 Comments
setuptools (or better, its replacement - distribute). But first, try the standard library approach.You mean as an .exe? Use cx_freeze or py2exe.