From 4554dca5295297aa4dd822bf843d99cb34e90364 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 24 Jan 2009 16:00:16 -0800 Subject: [PATCH] pyximport blurb --- docs/tutorial.rst | 11 ++++++++++- sphinxext/cython_highlighting.pyc | Bin 5706 -> 5706 bytes sphinxext/ipython_console_highlighting.pyc | Bin 2564 -> 2564 bytes 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index d13d814a..f5b50625 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -59,7 +59,7 @@ or :file:`helloworld.dll` in Windows. Now to use this file: start the python interpreter and simply import it as if it was a regular python module:: >>> import helloworld - "Hello World" + Hello World Congratulations! You now know how to build a Cython extension. But So Far this example doesn't really give a feeling why one would ever want to use Cython, so @@ -68,6 +68,15 @@ lets create a more realistic example. :mod:`pyximport`: Cython Compilation the Easy Way ================================================== +If your module doesn't require any extra libraries or other dependancies, then +you can use the pyximport module by Paul Prescod to load .pyx files directly +without having to write a :file:`setup.py` file. + + >>> import pyximport; pyximport.install() + >>> import helloworld + Hello World + +This is shipped and installed with Cython. Fibonacci Fun ============== diff --git a/sphinxext/cython_highlighting.pyc b/sphinxext/cython_highlighting.pyc index d80f201a13019d4bbc9de6c3d78d5dad8045883a..93ae7b51084fea8e610cc4700ed452ce8d1f3ce7 100644 GIT binary patch delta 16 XcmX@5b4rJO^Cw;|?#0y`*`37zIK>6( delta 16 XcmX@5b4rJO^Cw=eX%S)H{E3(AQ_lO1?0-1{Hlqgr delta 16 XcmZn>X%S)H{E3%~XaD_;?0-1{G5ZEw -- 2.26.2