Skip to content

Instantly share code, notes, and snippets.

@bfroehle
Created February 7, 2012 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfroehle/1756325 to your computer and use it in GitHub Desktop.
Save bfroehle/1756325 to your computer and use it in GitHub Desktop.
A simple example to trigger cython/cython PR-85
from distutils.core import setup
from Cython.Build import cythonize
setup(name = 'tst',
ext_modules = cythonize(['tst.pyx'])
)
from cython.operator cimport dereference as deref
@bfroehle
Copy link
Author

bfroehle commented Feb 7, 2012

When I run this, cythonize prints the following warning:

$ python setup.py build_ext --inplace
('missing cimport', 'tst.pyx')
cython.operator

running build_ext
building 'tst' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c tst.c -o build/temp.linux-x86_64-2.7/tst.o
tst.c:1015:13: warning: ‘__pyx_clear_code_object_cache’ defined but not used [-Wunused-function]
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/tst.o -o /home/bfroehle/tst/tst.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment