Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.04 KB

Build Status License

python-cython-demo

Inspired by Kurt W. Smith's book on Cython

Example

This example make use of a simple C++ source code which implements two Taylor series sinus() and cosinus(). The point is to illustrate how C/C++ functions can be called from python with the use of Cython.

Lower-level learning goals

  • Show how distutils can be used to build a Python library
  • Show how CMake can be used to accomblish the same thing

Requirements

  • Python
  • Cython
  • CMake
  • C++ compilers

Installing Python dependencies

In this example using Virtual Environments but also Anaconda or Miniconda will do the job: