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 / external_inline_declaration.srctree
Size: Mime:
PYTHON setup.py build_ext --inplace
PYTHON -c "import a; assert a.test() == 1"

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

from Cython.Build.Dependencies import cythonize

from distutils.core import setup

setup(
    ext_modules = cythonize("a.py"),
)

######## a.py ########

def inlined_func(x):
    return x

def test():
    return inlined_func(1)

######## a.pxd ########

cdef inline int inlined_func(int x)