How to package python extensions that need a special preprocessor?

David Howells dhowells at redhat.com
Thu Sep 3 15:36:43 UTC 2015


Guy Streeter <streeter at redhat.com> wrote:

> > I'm trying to package a python module that has a C extension that has a 
> > special preprocessor that turns protocol definition files into C.
> ...
> See the setup.py in this package:
> 
> https://git.fedorahosted.org/cgit/python-libnuma.git/
> 
> It runs msgfmt on the provided message catalog files at build time.

Okay, thanks for the reference.  That takes me part the way there - but as I
understand it, message catalogue files aren't then compiled with the C
compiler and built into the extension module, right?

David


More information about the devel mailing list