PDA

View Full Version : Python setup script



matmatmat
May 3rd, 2009, 09:24 AM
How do you create a python script that installs a program & it's dependencies? Is it possible?

matmatmat
May 3rd, 2009, 11:36 AM
The script is for this projects (https://launchpad.net/pypicslideshow)

geirha
May 3rd, 2009, 12:17 PM
Using the distutils module is the common way to achieve that. http://docs.python.org/distutils/introduction.html

matmatmat
May 3rd, 2009, 12:49 PM
Can you use this with apps

geirha
May 3rd, 2009, 04:11 PM
Yes, python apps generally has one or more modules, and a script that needs to be put in /usr/bin or /usr/local/bin. The documentation covers both.

salvachn
May 6th, 2009, 03:50 PM
I saw an utility py2exe on Windows XP, but distutils is better.