Distutils and scripts in a non standard place

Discussion in 'Python' started by Andrew Wilkinson, Apr 29, 2004.

  1. Hi,

    I've have some example scripts that I'd like to install under /usr/share
    along with my documentation. Currently I'm doing this using...
    data_files=[("/usr/share/pylinda/examples/", glob.glob("examples/*.py"))]
    ....in my setup.py. This doesn't treat them as executable scripts however and
    as such doesn't modify the #! line nor does it mark them as executable.

    Is there anyway of getting distutils to do this without resorting to the
    scripts command, which puts them under /usr/bin?

    Thanks in advance for any help,
    Andrew Wilkinson

    --
    Vegetarians eat Vegetables, BEWARE the man who claims to be a Humanitarian.
     
    Andrew Wilkinson, Apr 29, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Orenstein

    distutils setup ignoring scripts

    Jack Orenstein, Mar 15, 2005, in forum: Python
    Replies:
    0
    Views:
    268
    Jack Orenstein
    Mar 15, 2005
  2. George van den Driessche

    distutils, 'scripts' and Windows

    George van den Driessche, May 27, 2005, in forum: Python
    Replies:
    1
    Views:
    348
    John Roth
    May 27, 2005
  3. Replies:
    0
    Views:
    819
  4. timw.google
    Replies:
    1
    Views:
    563
    Serge Orlov
    May 11, 2006
  5. Luis Alberto Zarrabeitia Gomez

    distutils, No module named numpy.distutils.fcompiler.conv_template

    Luis Alberto Zarrabeitia Gomez, Mar 30, 2009, in forum: Python
    Replies:
    0
    Views:
    1,363
    Luis Alberto Zarrabeitia Gomez
    Mar 30, 2009
Loading...

Share This Page