tanminhnu / python-gflags

Automatically exported from code.google.com/p/python-gflags
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

setup.py installs Python scripts as 'data' rather than 'scripts' #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The setup.py script lists the Python script as a 'data file', alike:

      data_files=[("bin", ["gflags2man.py"])],

while it should be a 'script' instead:

      scripts=["gflags2man.py"],

Installing it a script will make sure that distutils correctly update the 
Python shebang and make the script executable.

I'm attaching a patch fixing setup.py.

Original issue reported on code.google.com by mgo...@gentoo.org on 16 Dec 2012 at 3:41

Attachments: