distutils question-> Why data_files listed in setup.py being ignored?! How fix?

David M. Cooke cookedm+news at physics.mcmaster.ca
Tue Oct 7 19:59:25 EDT 2003


At some point, seberino at spawar.navy.mil (Christian Seberino) wrote:

> I have a setup.py with something like this:
>
> import glob
>
> ...                                                                        
>                                                                                 
> setup( ...,
>        ...,
>        data_files = [ ( "pixmaps", glob.glob("pixmaps/*.xpm") ) ]
>        ....
>      )
>                                                                                 
> The tarball I made with "python setup.py sdist" looks good except
> none of the data_files show up in tarball?!?!
>                                                                                 
> How fix?

You have to add them to your MANIFEST.in . Something like:
include pixmaps/*.xpm

setup(scripts=...) has the same problem.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca




More information about the Python-list mailing list