pycompilation bundles python convenience classes and functions for performing compilation and linking on the fly from python. Developed to simplify working with code-generation, compilation and import (meta-programming) from Python.
Example using pip (modify to your own needs):
$ python3 -m pip install --user pycompilation
Look at examples/*_main.py
which show how pycompilation can be used.
You may also look at other projects which uses pycompilation:
You find the latest documentation at http://pycompilation.readthedocs.org/
For the examples to work you need:
- Cython
- A C compiler (e.g. gcc)
- A C++ compiler (e.g. g++)
- A Fortran complier (e.g. gfortran)
- appdirs (python module)
Open Source. Released under the very permissive simplified (2-clause) BSD license. See LICENSE for further details.
- Windows support
- PGI compilers
- Better Intel MKL linkline help (cf. "Intel® Math Kernel Library Link Line Advisor")