[Python-apps-commits] r219 - /packages/cython/trunk/debian/README.Debian

certik-guest at users.alioth.debian.org certik-guest at users.alioth.debian.org
Tue Nov 13 00:03:09 UTC 2007


Author: certik-guest
Date: Tue Nov 13 00:03:09 2007
New Revision: 219

URL: http://svn.debian.org/wsvn/python-apps/?sc=1&rev=219
Log:
instructions for compiling added

Modified:
    packages/cython/trunk/debian/README.Debian

Modified: packages/cython/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/python-apps/packages/cython/trunk/debian/README.Debian?rev=219&op=diff
==============================================================================
--- packages/cython/trunk/debian/README.Debian (original)
+++ packages/cython/trunk/debian/README.Debian Tue Nov 13 00:03:09 2007
@@ -1,24 +1,15 @@
-SymPy for Debian
-----------------
+Cython
+------
 
-Web page of SymPy: http://code.google.com/p/sympy
+A simple example how to use it on Debian. Create a file t.pyx:
 
-This package contains the sympy Python package, so in Python you can do
-
-import sympy
-
-and it will just work. It also contains the 
-
-isympy
-
-program, that is basically just a python/ipython shell, that imports the
-frequently used commands. It's highly recommended for playing with SymPy. See
-"man isympy" for more info. 
-
-All the documentation for SymPy can be found on the home page.
-
-Examples can be found in 
-
-/usr/share/doc/python-sympy/examples
-
-Ondrej Certik <ondrej at certik.cz>
+$ cat t.pyx 
+def msum(long N):
+    cdef long s, k = 0
+    for k from 0 <= k < N :
+        s += k + 1
+    return s
+$ cython  t.pyx 
+$ gcc -O3 -I/usr/include/python2.4/ -c -o t.o t.c
+$ gcc -shared t.o -o t.so
+$ 




More information about the Python-apps-commits mailing list