title: What's wrong with this `setup.py`?
body: <p>I've been having problems withe getting <code>setup.py</code> to do the <code>sdist</code> thing correctly. I boiled it down to this. I have the following directory structure:</p>
  
  <pre><code>my_package\
      my_subpackage\
          __init__.py
          deep_module.py
      __init__.py
      module.py
      setup.py
  </code></pre>
  
  <p>And here's what I have in <code>setup.py</code>:</p>
  
  <pre><code>#!/usr/bin/env python
  
  from distutils.core import setup
  import distutils
  
  setup(
      name='a',
      version='0.1',
      description='a',
      author='a',
      author_email='a@a.com',
      url='http://a.org',
      packages=['my_package','my_package.my_subpackage'],
      package_dir={'': '..'},
      license= "a",
      long_description = 'aaa',
  
  )
  </code></pre>
  
  <p>(The <code>'aaa'</code> stuff is just placeholder.)</p>
  
  <p>Anyway, it works okay when I do <code>setup.py install</code>, but when I try to do <code>setup.py sdist</code>, a few curious things happen:</p>
  
  <ol>
  <li><p>A <code>MANIFEST</code> file is created.</p></li>
  <li><p>A copy of the <code>my_package</code> folder is created <em>inside</em> the existing <code>my_package</code> folder (though it misses a few of the setup-related files I think.)</p></li>
  <li><p>A <code>dist</code> folder is created, inside it a zipfile, inside that a folder with the package name, but inside that folder there isn't the whole package like I hoped but only two files, <code>setup.py</code> and <code>PKG-INFO</code>.</p></li>
  </ol>
  
  <p>What am I doing wrong? How do I make <code>sdist</code> work?</p>