Met Problem with Distutils
Robert Kern
rkern at ucsd.edu
Tue Mar 1 00:48:15 EST 2005
steven at lczmsoft.com wrote:
> if i want a main executable py script installed on the /usr/local/bin,
> what do i do? i tried the data_files options in the setup.py, but
> nothing happened, no the expected file appeared in the resulted tarbar.
Generally speaking, you, the author, shouldn't dictate to the user
exactly where to install stuff to. There are reasons to break this rule,
but installing exectuable scripts is too common to be one of them.
The way for the user to install scripts to the location of their choice
is given here:
http://docs.python.org/inst/alt-install-windows.html
In short, use the --install-scripts command-line option, or the
setup.cfg/.pydistutils.cfg snippet:
[install]
install_scripts=...
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list