Skip to content

Instantly share code, notes, and snippets.

@bfroehle bfroehle/setup.py
Created Feb 7, 2012

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.