Met Problem with Distutils

steven at lczmsoft.com steven at lczmsoft.com
Tue Mar 1 00:39:53 EST 2005


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.

below is the setup.py:

setup(name='foopkg',

      version='1.0',

      author="Steven Woody",

      author_email="steven at lczmsoft.com",

      url="http://a.b.c",

      packages=['foopkg'],

      scripts=['scripts/*.py'],

      data_files=[('/usr/local/bin', ['scripts/myprj.py'])]

      )


can anyone tell me what is wrong?

thanks in advance!

-
narke




More information about the Python-list mailing list