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

Christian Seberino seberino at spawar.navy.mil
Wed Oct 8 12:54:06 EDT 2003


David

Thank you *very* much.  I needed that.

Chris

cookedm+news at physics.mcmaster.ca (David M. Cooke) wrote in message news:<qnku16kzjj6.fsf at arbutus.physics.mcmaster.ca>...
> 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.




More information about the Python-list mailing list