title: setup.py: renaming src package to project name
body: <p>Let's say you have a project called <code>proj</code> and in this project you have the following structure:</p>
  
  <pre><code>proj/
    dists/
    doc/
    src/
      __init__.py
      xyz.py
      abc.py
    test/
    setup.py
  </code></pre>
  
  <p>As you can see all the content of your project is in the <code>src</code> subfolder. How to go about making a distutils distribution package out of the <code>src</code> folder?</p>
  
  <p>My naive idea, following <a href="http://docs.python.org/2/distutils/setupscript.html" rel="noreferrer">the tutorial</a>, would've been to write the <code>setup.py</code> like this:</p>
  
  <pre><code>#omitting basics
  setup(
     name='proj',
     packages=['src'],
     package_dir={'proj':'src'}
  )
  </code></pre>
  
  <p>But after installing the resulting package to my system, I still have to import <code>src.xyz</code> and not <code>proj.xyz</code>, which would've been the goal and the expected result.     </p>