1PYTHON setup.py build_ext --inplace
2PYTHON -c "import a; assert a.test() == 1"
3
4######## setup.py ########
5
6from Cython.Build.Dependencies import cythonize
7
8from distutils.core import setup
9
10setup(
11    ext_modules = cythonize("a.py"),
12)
13
14######## a.py ########
15
16def inlined_func(x):
17    return x
18
19def test():
20    return inlined_func(1)
21
22######## a.pxd ########
23
24cdef inline int inlined_func(int x)
25