Mike Meyer wrote:
I've got a package that includes an extension that has a number of
header files in the directory with the extension. They are specified
as "depends = [...]" in the Extension class. However, Distutils
doesn't seem to do anything with them.

If I do an sdist, the include files aren't added to the tarball.

IIRC you need to add a MANIFEST.IN file to get non-Python files (including those already referenced in your setup.py) in the mix. You'll propably need a MANIFEST.IN looking something like the following:


include *.txt
include MANIFEST.in
include setup.py
include setup.cfg

recursive-include src *.c *.h
recursive-include docs *.html *.css *.gif *.jpg *.txt

prune someolddir


HTH, --

Vincent Wehren



If I do a bdist_rpm, the source files get copied into the build directory and the build starts, but the header files aren't copied with the source file, so the build fails with a missing header file.

I find it hard to believe that this is a bug in distutils, so I'd
appreciate it if someone could tell me what I'm doing wrong.

           Thanks,
           <mike
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to