distutils, extensions, and missing headers
Robert Kern
robert.kern at gmail.com
Thu Sep 20 14:08:00 EDT 2007
Gary Jefferson wrote:
> On Sep 20, 1:22 am, Robert Kern <robert.k... at gmail.com> wrote:
>> Use the "headers" keyword to setup() to list the header files you want installed.
>
> I've tried "headers=['header1.h', 'header2.h']" in setup() as well
> as in Extension(), and neither seem to get the files into the bdist or
> bdist_rpm tarball. Am I doing it wrong? I can't seem to find any
> examples that use this via google.
You might need an accurate relative path. I'm assuming that you don't actually
keep header1.h and header2.h in the top-level directory next to the setup.py.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list