4.1.1 Special Pragmas

If Cython code is either attached or loaded as a .spyx file or loaded from the notebook as a %cython block, the follow pragmas are available:

clang
may be either c or c++ indicating whether a C or C++ compiler should be used
clib
additional libraries to be linked in, the space separated list is split and passed to distutils.
cinclude
additional directories to search for header files. The space separated list is split and passed to distutils.

For example:

#clang C++
#clib givaro
#cinclude /usr/local/include/

See About this document... for information on suggesting changes.