[Tutor] concerning distutils: how to include additional files?

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Tue Sep 7 22:08:07 CEST 2004



On Mon, 6 Sep 2004, Christian Meesters wrote:

> I'd like to place a question concerning the distutils module. Or better:
> How is it possible to include files into a package which aren't Python
> modules (e.g. a README file)?

Hi Christian,


I think you can do this through the 'MANIFEST.in' file: it allows us to
tell Distutils what to include with a source distribution.


http://docs.python.org/dist/source-dist.html#SECTION000510000000000000000


I'm not exactly sure how MANIFEST.in interacts with the other options in
the setup() call, but perhaps when Distutils is run in 'sdist' mode, it
doesn't look at the 'data_files' keyword parameter?  I'm ignorant because
I haven't looked closely at this yet...


But If I have more time, I'll try to look into this and try to give a
better explanation.  And I do probably have to look at this: I need to
polish up my personal 'pyscheme' program with Distutils this week.


> Perhaps my question is somewhat na=EFve, but it's my first time with
> distutils ...

No, it's a good question.  Feel free to ask more.  *grin*


Best of wishes to you!



More information about the Tutor mailing list