title: Setuptools console_script entry point not found with install but it's found with develop
body: <p><a href="https://bitbucket.org/fudepan/fbuildbot">My package</a> has a entry point defined in it's setup.py:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from setuptools import setup
  
  setup(
      name='fbuildbot',
      version='0.1',
      ...
      entry_points={
          'console_scripts': [
              'create = create:main',
          ],
      },
      install_requires=[
          "cookiecutter",
      ],
  )
  </code></pre>
  
  <p>Thing is, If I do <code>python setup.py develop</code>, I can run the command just fine, but if I do install it with <code>python setup.py install</code> the install procedure runs correctly but the console script fails with <code>ImportError</code>:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/matias/.venvs/fbuild/bin/create", line 8, in &lt;module&gt;
      load_entry_point('fbuildbot==0.1', 'console_scripts', 'create')()
    File "/home/matias/.venvs/fbuild/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
    File "/home/matias/.venvs/fbuild/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2221, in load_entry_point
    File "/home/matias/.venvs/fbuild/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954, in load
  ImportError: No module named create
  </code></pre>
  
  <p>Clearly it's failing to setup the package correctly on the pythonpath. I thought it was because I have the script barely at the top level. So I tried adding wrapping it all in a package, moving all important parts to a inner module and changing the <code>setup.py</code> accordingly:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from setuptools import setup
  
  setup(
      name='fbuildbot',
      version='0.1',
      description="Buildbot configuration generator for fbuild",
      ...
      packages=['fbuildbot', ],
      entry_points={
          'console_scripts': [
              'create = fbuildbot.create:main',
          ],
      },
      install_requires=[
          "cookiecutter",
      ],
  )
  </code></pre>
  
  <p>But it fails with the same message (with updated path, obviously).</p>
  
  <p>Clearly I'm doing something wrong here. What could it be?</p>