distutils, sdist and tests

Steven Bethard steven.bethard at gmail.com
Sat Jan 27 22:00:48 EST 2007


Robert Kern wrote:
> Steven Bethard wrote:
>> How do I get distutils to include my testing module in just the "sdist" 
>> distribution?
> 
> Use a MANIFEST.
> 
>   http://docs.python.org/dist/source-dist.html
> 
>> I want test_argparse.py to be available in the source distribution, but 
>> I don't think it should be included in the binary distributions.

Using a MANIFEST appears to do the same thing as putting "test_argparse" 
into py_modules -- that is, it puts "test_argparse.py" into both "sdist" 
and "bdist" distributions. In "bdist" distributions it gets installed to 
the site-packages directory like any other module.

STeVe



More information about the Python-list mailing list