title: pip not installing entry_points as executables
body: <p>I'm trying to create a package of my own. The package is very simple, it has one python module and one bash script. I wan both of them to be installed under <code>/usr/local/bin</code> so that they can be directly executed.</p>
  
  <p>Here's my <code>setup.py</code> file:</p>
  
  <pre><code>from setuptools import setup
  
  setup(
      name='deploy',
      .
      .
      .
      install_requires=['pyyaml', 'cot', 'jsonschema'],
      entry_points={
          'console_scripts': [
              'cloud_config = cloud_config:main',
          ],
      },
      scripts=['deploy.sh'],
  )
  </code></pre>
  
  <p>Here's excerpt from output of <code>pip install ...</code>:</p>
  
  <pre><code>running install_scripts
      copying build/scripts-2.7/deploy.sh -&gt; /usr/local/lib/python2.7.10/bin
      changing mode of /usr/local/lib/python2.7.10/bin/deploy.sh to 755
      Installing cloud_config script to /usr/local/lib/python2.7.10/bin
  </code></pre>
  
  <p>With this, I'm not able to invoke either the python or the bash script directly.</p>
  
  <p>Any ideas?</p>
  
  <p>Edit: I'm running the <code>pip</code> on <code>Ubuntu 16.04.1</code> machine. Just tried to install the same package on a <code>Ubuntu 14.04</code> machine and behavior is as expected. <code>cloud_config.py</code> and <code>deploy.sh</code> both get installed to <code>/usr/local/bin</code> and I can invoke both from anywhere on the system.</p>