Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
626c685c
Commit
626c685c
authored
Sep 19, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rephrase unhelpful wording in compilation docs
parent
71807217
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
docs/src/reference/compilation.rst
docs/src/reference/compilation.rst
+6
-6
No files found.
docs/src/reference/compilation.rst
View file @
626c685c
...
@@ -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
)
)
R
un the command ``python setup.py build_ext --inplace`` in your
Now, r
un 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment