Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Cython / tests / run / extern_impl.srctree
Size: Mime:
PYTHON setup.py build_ext --inplace
PYTHON -c "import foo"
PYTHON -c "import a"

######## setup.py ########

from Cython.Build import cythonize
from distutils.core import setup

setup(
  ext_modules = cythonize("*.pyx"),
)

######## foo.pxd ########

cdef void bar() except *

######## foo.pyx ########

cdef extern from "bar_impl.c":
    void bar() except *

######## bar_impl.c ########

static void bar() {}

######## a.pyx ########

from foo cimport bar