Makefile for add function to __builtin__ module through C API.
C source is here:
https://code.activestate.com/recipes/579110-add-function-to-__builtin__-module-through-c-api/
Python script is here:
https://code.activestate.com/recipes/579112-add-function-to-__builtin__-module-through-c-api-c/
1 2 3 4 5 6 | clean:
rm -rf *.o pytestbin
pytest:
make clean
gcc -o pytestbin pysource.c -Wall -I/usr/include/python2.7 -L/usr/lib -lpython2.7
|