Re: [Distutils] specifying headers for an extension
Achim Gaedke
I need such things too.
In my case there is the module initialisation in the *module.c file and some 100 of method definitions in another that is included into the first.
It would be nice if setup.py can handle this.
There's a bug on sf on this, assigned to me. I'm not likely to get to it soon, I'm afraid. Patches welcome :) Cheers, M. -- ... but I guess there are some things that are so gross you just have to forget, or it'll destroy something within you. perl is the first such thing I have known. -- Erik Naggum, comp.lang.lisp
Michael Hudson wrote:
Achim Gaedke
writes: I need such things too.
In my case there is the module initialisation in the *module.c file and some 100 of method definitions in another that is included into the first.
It would be nice if setup.py can handle this.
There's a bug on sf on this, assigned to me. I'm not likely to get to it soon, I'm afraid. Patches welcome :)
Cheers, M.
Not a finished patch but some ideas for it. See at http://mail.python.org/pipermail/distutils-sig/2000-December/001785.html http://mail.python.org/pipermail/distutils-sig/2000-December/001786.html Rene
From: "Michael Hudson"
Achim Gaedke
writes: I need such things too.
In my case there is the module initialisation in the *module.c file and some 100 of method definitions in another that is included into the first.
It would be nice if setup.py can handle this.
There's a bug on sf on this, assigned to me. I'm not likely to get to it soon, I'm afraid. Patches welcome :)
IMO we should allow sources to be instances of a SourceFile class in addition to strings. Extension(..., sources = SourceFile("spam.c", depends=["spam.h", "spam2.h"])) I can supply a patch if needed. Thomas
Thomas Heller writes:
IMO we should allow sources to be instances of a SourceFile class in addition to strings. ... I can supply a patch if needed.
I'd be happy with this solution, and can help test the patch. ;-) Feel free to assign it to me on SF, and bump the priority to 7. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation
From: "Fred L. Drake, Jr."
Thomas Heller writes:
IMO we should allow sources to be instances of a SourceFile class in addition to strings. ... I can supply a patch if needed.
I'd be happy with this solution, and can help test the patch. ;-) Feel free to assign it to me on SF, and bump the priority to 7.
Great. You could also write the docs ;-) Thomas
participants (4)
-
Fred L. Drake, Jr.
-
Michael Hudson
-
Rene Liebscher
-
Thomas Heller