Fergus Barker
Fergus Barker

Reputation: 1342

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!

Upvotes: 4

Views: 442

Answers (2)

Jake
Jake

Reputation: 87

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

Upvotes: 1

Jim Dennis
Jim Dennis

Reputation: 17520

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.

Upvotes: 3

Related Questions