[EMAIL PROTECTED] 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
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to