[GRASS-dev] Makefile for mixed Python & C module

Maris Nartiss maris.gis at gmail.com
Mon Apr 16 10:26:07 PDT 2018


Hi devs,
during my free time I have been working on a Python module, but its
performance with PyGRASS was miserable. I managed to improve
performance by moving some loops to C and calling them from Python
with ctypes. Only thing I can not figure out is the Makefile.

How should a Makefile for hybrid module look like? Code is organized
in a simple fashion with two files:
i.module.py
get_data.c

Will it be possible to ship such code as an addon?

Thanks,
Māris.


More information about the grass-dev mailing list