title: python setup.py install changes script interpreter
body: <p>I have a Python package that includes a few scripts in a <code>scripts/</code> folder. My <code>setup.py</code> file includes::</p>
  
  <pre><code>#!/usr/bin/env python
  
  from distutils.core import setup
  
  scripts = ['script1', 'script2', 'script3']
  
  setup(name='Test',
        version='0.1.0',
        packages=['test'],
        scripts=['scripts/' + x for x in scripts]
       )
  </code></pre>
  
  <p>Each script contains the line::</p>
  
  <pre><code>#!/usr/bin/env python
  </code></pre>
  
  <p>at the top. However, when I run <code>python setup.py install</code> this line gets changed to::</p>
  
  <pre><code>#!/usr/bin/python
  </code></pre>
  
  <p>automatically in the installed scripts. Is there a way to avoid this? The reason that this is a problem for me is because I am using virtualenv, and so the correct path for the Python executable should be::</p>
  
  <pre><code>#/Users/user/.virtualenvs/default/bin/python
  </code></pre>
  
  <p>so I'd rather it left the interpreter set to::</p>
  
  <pre><code>#!/usr/bin/env python
  </code></pre>
  
  <p>Thanks for any advice!</p>