title: setup.py sdist exclude packages in subdirectory
body: <p>I have the following project structure I would like to package:</p>
  
  <pre><code>├── doc
  │   └── source
  ├── src
  │   ├── core
  │   │   ├── config
  │   │   │   └── log.tmpl
  │   │   └── job
  │   ├── scripts
  │   └── test
  └── tools
  </code></pre>
  
  <p>I would like to package <code>core</code> under <code>src</code> but exclude <code>test</code>. Here is what I tried unsuccessfully:</p>
  
  <pre><code>      setup(name='core',
        version=version,  
        package_dir = {'': 'src'}, # Our packages live under src but src is not a package itself
        packages = find_packages("src", exclude=["test"]), # I also tried exclude=["src/test"]
        install_requires=['xmltodict==0.9.0',
                          'pymongo==2.7.2',
                          'ftputil==3.1',
                          'psutil==2.1.1',
                          'suds==0.4',
                          ],
        include_package_data=True,
        )
  </code></pre>
  
  <p>I know I can exclude <code>test</code> using the MANIFEST.in file, but I would be happy if you could show me how to do this with <code>setup</code> and <code>find_packages</code>. </p>
  
  <h3>Update:</h3>
  
  <p>After some more playing around, I realized that building the package with <code>python setup.py install</code> does what I expected (that is, it excludes <code>test</code>). However, issuing <code>python setup.py sdist</code> causes everything to be included (that is, it ignores my exclude directive). I don't know whether it is a bug or a feature, but there is still the possibility of excluding files in <code>sdist</code> using <code>MANIFEST.in</code>.</p>