Commit 626c685c authored by Stefan Behnel's avatar Stefan Behnel

rephrase unhelpful wording in compilation docs

parent 71807217
...@@ -47,10 +47,10 @@ A ``yourmod.so`` file is now in the same directory and your module, ...@@ -47,10 +47,10 @@ A ``yourmod.so`` file is now in the same directory and your module,
Compiling with ``distutils`` Compiling with ``distutils``
============================ ============================
First, make sure that ``distutils`` package is installed in your The ``distutils`` package is part of the standard library. It is the standard
system. It normally comes as part of the standard library. way of building Python packages, including native extension modules. The
The following assumes a Cython file to be compiled called following example configures the build for a Cython file called *hello.pyx*.
*hello.pyx*. Now, create a ``setup.py`` script:: First, create a ``setup.py`` script::
from distutils.core import setup from distutils.core import setup
from Cython.Build import cythonize from Cython.Build import cythonize
...@@ -60,7 +60,7 @@ The following assumes a Cython file to be compiled called ...@@ -60,7 +60,7 @@ The following assumes a Cython file to be compiled called
ext_modules = cythonize('hello.pyx'), # accepts a glob pattern ext_modules = cythonize('hello.pyx'), # accepts a glob pattern
) )
Run the command ``python setup.py build_ext --inplace`` in your Now, run the command ``python setup.py build_ext --inplace`` in your
system's command shell and you are done. Import your new extension system's command shell and you are done. Import your new extension
module into your python shell or script as normal. module into your python shell or script as normal.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment