Rob Wolfe: > # setup.py > from distutils.core import setup > from distutils.extension import Extension > from Cython.Distutils import build_ext as build_pyx > > setup(name = 'pyx_test', > ext_modules=[Extension('pyx_test', ['test_cython.pyx'])], > cmdclass = { 'build_ext': build_pyx }) > > $ python2.5 setup.py build_ext -i > running build_ext > cythoning test_cython.pyx to test_cython.c > building 'pyx_test' extension > creating build/temp.linux-i686-2.5 > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes > -fPIC -I/usr/include/python2.5 -c test_cython.c -o > build/temp.linux-i686-2.5/test_cython.o > test_cython.c:86: warning: function declaration isn’t a prototype > test_cython.c:241: warning: function declaration isn’t a prototype > test_cython.c:59: warning: ‘__pyx_skip_dispatch’ defined but not used > gcc -pthread -shared -Wl,-O1 build/temp.linux-i686-2.5/test_cython.o -o > pyx_test.so > $ python2.5 test_cython.py > 0 > 100
With some intelligence added to Cython, probably there are ways to reduce all this, and most of the times avoid any setup.py module too. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list