Hopefully by now you've got Cython down and compiled and installed it. Let's check this by running the following command:
$ cython --version
Let's do a sanity test and run the typical "Hello World" program:
We have now created the Cython
helloworld.so module! You can see it within Python (make sure you are in the same directory as the
redbrain@gamma:~/workspace/cython-book/chapter1/helloworld$ python Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import helloworld Hello World from cython!
helloworld since this module is now a valid Python module ...