Distutils and scripts in a non standard place

A

Andrew Wilkinson

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top