[Distutils] DEF Files
Robert Kern
kernr@ncifcrf.gov
Tue, 14 Sep 1999 02:19:38 -0400
I may be missing something, but is it permissible for distutils to
generate a temporary DEF file that exists only until the end of the
compilation?
If the initialization function of our extension is 'initfoo' then the
DEF file is as follows:
"""EXPORTS
initfoo
"""
Leading whitespace is optional. I don't believe that anything else is
necessary. Since the mapping from module name to function name is
one-to-one, distutils already has the required information at hand.
FWIW, I agree with David that requiring modifying the source of an
extension is not a good thing. It only adds a headache for people trying to port from *NIX to
Windows (and we have enough to deal with,
believe me), and it pollutes the code with weird MS extensions.
--
Robert Kern |
----------------------|"In the fields of Hell where the grass grows high
This space | Are the graves of dreams allowed to die."
intentionally | - Richard Harter
left blank. |