Setuptools - help!
rylesny at gmail.com
Thu Aug 20 07:46:17 CEST 2009
On Aug 7, 3:04 pm, Peter Chant <REMpete... at petezilla.co.uk> wrote:
> Robert Kern wrote:
> > You need to put main.py into the pphoto package.
> > $ mkdir pphoto/
> > $ mv main.py pphoto/
> > $ touch pphoto/__init__.py
> Thanks, it worked. Any ideas how to run the resulting scripts without
> installing or running as root?
If you are using Python 2.6+ you have your own site-packages
directory, e.g. ~/.local/lib/python2.6/site-packages. So, if this
package is only for your own use, you can use easy_install's --install-
dir option to have setuptools install it there, and can also set --
script-dir to ~/bin, where your console script will go. This, and
other options are discussed here:
More information about the Python-list