4

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!

asked Jun 13, 2011 at 1:05
1
  • 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/…. Commented Jul 25, 2014 at 19:55

2 Answers 2

3

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.

answered Jun 13, 2011 at 1:32
Sign up to request clarification or add additional context in comments.

4 Comments

It's not so much as a script as a fully functioning PyGtk Program. I'd like to be able to for example make a .deb so it can be run like any other program.
setuptools does not help you create packages, but having a package that is installed via setuptools will greatly relieve the burden on package mantainers. Have a look at another package that works in a similar way.
Okay. I'll go get a similar program and have a look.
@Fergus, do take a look at that "Installing Scripts" link above. This is it. If you want extra power, use setuptools (or better, its replacement - distribute). But first, try the standard library approach.
1

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

answered Jun 13, 2011 at 3:12

1 Comment

I'm looking at for a Linux box rather than Windows.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.