distutils - packaging .h files with "sdist"

Thomas Heller thomas.heller at ion-tof.com
Thu Jan 10 14:06:32 CET 2002

"Graham Ashton" <graham at effectif.idps.co.uk> wrote in message news:mailman.1010658973.13599.python-list at python.org...
> I suspect I'm being thick here, but I can't get distutils to include my
> extension's .h file in source distributions (created with "python setup.py
> sdist"). I've been through the distutils docs for extension modules and
> didn't see anything about how to add a .h file.
> I thought I could use the data_files option, but then I realised that this
> would copy .h around in the binary distribution too.
> Is there a "correct" way to do it?
You need to create a MANIFEST or (better) a MANIFEST.in file.


More information about the Python-list mailing list