can python access OS level features like bash scripting?

Krishnakant hackingkk at gmail.com
Sun Apr 19 17:40:58 EDT 2009


On Sun, 2009-04-19 at 14:55 -0300, Gabriel Genellina wrote:

> Write a setup.py script using the distutils package:
> http://docs.python.org/distutils/index.html
> 
So that can distutil do the work of setting up the database and can it
find for itself if psycopg2 and other related libraries are installed?
I am going to create a deb file, so is it a good idea to some how have
the deb rules execute the setup.py file of the distutils?

Besides, I will also like to create a single file containing all the
modules i need as dependencies so even if a user does not have internet,
we can still install the package on that machine.

So will it be a good idea to let distutils do every thing I had
described about putting files in the place and having the script copyed
to /usr/bin etc?

happy hacking.
Krishnakant.
 





More information about the Python-list mailing list