title: How can I get my setup.py to use a relative path to my files?
body: <p>I'm trying to build a Python distribution with <code>distutils</code>.  Unfortunately, my directory structure looks like this:</p>
  
  <pre>
  /code
      /mypackage
          __init__.py
          file1.py
          file2.py
          /subpackage
              __init__.py
      /build
          setup.py
  </pre>
  
  <p>Here's my <code>setup.py</code> file:</p>
  
  <pre><code>from distutils.core import setup
  
  setup(
      name = 'MyPackage',
      description = 'This is my package',
      packages = ['mypackage', 'mypackage.subpackage'], 
      package_dir = { 'mypackage' : '../mypackage' }, 
      version = '1',
      url = 'http://www.mypackage.org/',
      author = 'Me',
      author_email = 'me@here.com',
  ) 
  </code></pre>
  
  <p>When I run <code>python setup.py sdist</code> it correctly generates the manifest file, but doesn't include my source files in the distribution.  Apparently, it creates a directory to contain the source files (i.e. <code>mypackage1</code>) then copies each of the source files to <code>mypackage1/../mypackage</code> which puts them <em>outside</em> of the distribution.</p>
  
  <p>How can I correct this, without forcing my directory structure to conform to what <code>distutils</code> expects?</p>