[Distutils] Including tests in source package

Stanisław Pitucha viraptor at gmail.com
Sat Aug 21 14:05:54 CEST 2010

Hi all,
I'm trying to package tests file in the sdist only and it doesn't really
work :/
If I do:

   packages = find_packages(exclude=['tests']),
   test_suite = "tests",

this doesn't package tests anywhere. Using either general find_packages
includes tests in both sdist and bdist.
How can I resolve this? Essentially I want either tests.py, or
tests/__init__.py to be distributed in sdist, but not in bdist.


More information about the Distutils-SIG mailing list