From: Robert Bradshaw Date: Sun, 25 Jan 2009 00:00:16 +0000 (-0800) Subject: pyximport blurb X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4554dca5295297aa4dd822bf843d99cb34e90364;p=cython.git pyximport blurb --- 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 d80f201a..93ae7b51 100644 Binary files a/sphinxext/cython_highlighting.pyc and b/sphinxext/cython_highlighting.pyc differ diff --git a/sphinxext/ipython_console_highlighting.pyc b/sphinxext/ipython_console_highlighting.pyc index 9d8a8c1c..a06c3249 100644 Binary files a/sphinxext/ipython_console_highlighting.pyc and b/sphinxext/ipython_console_highlighting.pyc differ