[Distutils] package_data not used by sdist command

Phillip J. Eby pje at telecommunity.com
Fri Feb 2 18:49:29 CET 2007

At 09:33 AM 1/22/2007 -0500, Jim Fulton wrote:
>It appears that the sdist command doesn't consult the data passed
>in the package_data option to setup.  I want to name data
>that isn't under version control for inclusion.  Because
>sdist doesn't pay attention to package_data, the data I'm
>naming isn't included in the source distribution.  It is included
>if I build an egg directly.  This appears to me to be a bug.

Yeah, there's a long and uninteresting history there.  :)  When I 
implemented package_data, I was already using a MANIFEST.in to include data 
in the sdist.  Then, Fred ported package_data back into the distutils from 
setuptools, and then *after* that I added sdist-thru-revision-control 
support, so the distutils never got it, and setuptools never appeared to 
need it (at least to me).

Anyway, I don't know if a fix for this can go into 0.6 or not, depending on 
how extensive a change is required.  A patch would go a long way towards 
getting it into 0.6c6.  There are way too many 'c' releases and I'd really 
like 0.6 final out before *this* year's Pycon.  :)

More information about the Distutils-SIG mailing list