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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
fb863d29
Commit
fb863d29
authored
Feb 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use cythonize() instead of build_ext override in tutorial examples
parent
4f140dde
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
docs/examples/tutorial/fib1/setup.py
docs/examples/tutorial/fib1/setup.py
+2
-5
docs/examples/tutorial/primes/setup.py
docs/examples/tutorial/primes/setup.py
+2
-5
No files found.
docs/examples/tutorial/fib1/setup.py
View file @
fb863d29
from
distutils.core
import
setup
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
from
Cython.Distutils
import
build_ext
setup
(
setup
(
cmdclass
=
{
'build_ext'
:
build_ext
},
ext_modules
=
cythonize
(
"fib.pyx"
),
ext_modules
=
[
Extension
(
"fib"
,
[
"fib.pyx"
])]
)
)
docs/examples/tutorial/primes/setup.py
View file @
fb863d29
from
distutils.core
import
setup
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
from
Cython.Distutils
import
build_ext
setup
(
setup
(
cmdclass
=
{
'build_ext'
:
build_ext
},
ext_modules
=
cythonize
(
"primes.pyx"
),
ext_modules
=
[
Extension
(
"primes"
,
[
"primes.pyx"
])]
)
)
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