1 |
Excerpts from Brian Harring's message of Fri Dec 18 20:16:19 +0000 2009: |
2 |
> On Tue, Dec 15, 2009 at 03:54:53PM +0700, Max Arnold wrote: |
3 |
> > Initially my script has "/usr/bin/env python" shebang line. When I checked actual installed |
4 |
> > file, it contained "/usr/bin/python2.6". Who is responsible for this modification (eclass, |
5 |
> > distutils or something else)? Why not "/usr/bin/env python2.6"? |
6 |
> |
7 |
> distutils. If you find a knob to disable that, I'd be interested... |
8 |
> ~brian |
9 |
|
10 |
There isn't a trigger to change this behaviour [currently]. |
11 |
|
12 |
You can monkey patch it quite easily though, if you're willing. Something |
13 |
like the following pasted in to the setup.py does the trick. |
14 |
|
15 |
import re |
16 |
from distutils.command import build_scripts |
17 |
build_scripts.first_line_re = re.compile("^never gonna match you up$") |
18 |
-- |
19 |
Thanks, |
20 |
|
21 |
James |