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
107fc454
Commit
107fc454
authored
Sep 22, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release
parents
e2d55c56
c4c9683e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
86 deletions
+95
-86
CHANGES.rst
CHANGES.rst
+1
-1
docs/examples/tutorial/numpy/convolve2.pyx
docs/examples/tutorial/numpy/convolve2.pyx
+79
-79
runtests.py
runtests.py
+11
-2
tests/run/numpy_bufacc_T155.pyx
tests/run/numpy_bufacc_T155.pyx
+1
-1
tests/run/numpy_parallel.pyx
tests/run/numpy_parallel.pyx
+1
-1
tests/run/numpy_subarray.pyx
tests/run/numpy_subarray.pyx
+1
-1
tests/run/numpy_test.pyx
tests/run/numpy_test.pyx
+1
-1
No files found.
CHANGES.rst
View file @
107fc454
...
...
@@ -79,7 +79,7 @@ Bugs fixed
*
The
exception
handling
in
generators
and
coroutines
under
CPython
3.7
was
adapted
to
the
newly
introduced
exception
stack
.
Users
of
Cython
0.28
who
want
to
support
Python
3.7
are
encouraged
to
upgrade
to
0.29
to
avoid
potentially
incorrect
error
reporting
and
tracebacks
.
reporting
and
tracebacks
.
(
Github
issue
#
1958
)
*
Crash
when
importing
a
module
under
Stackless
Python
that
was
built
for
CPython
.
Patch
by
Anselm
Kruis
.
(
Github
issue
#
2534
)
...
...
docs/examples/tutorial/numpy/convolve2.pyx
View file @
107fc454
# tag: numpy
# tag: numpy
_old
# You can ignore the previous line.
# It's for internal testing of the cython documentation.
...
...
runtests.py
View file @
107fc454
...
...
@@ -135,6 +135,7 @@ def get_distutils_distro(_cache=[]):
EXT_DEP_MODULES
=
{
'tag:numpy'
:
'numpy'
,
'tag:numpy_old'
:
'numpy'
,
'tag:pythran'
:
'pythran'
,
'tag:setuptools'
:
'setuptools.sandbox'
,
'tag:asyncio'
:
'asyncio'
,
...
...
@@ -254,12 +255,19 @@ def update_linetrace_extension(ext):
return ext
def update_numpy_extension(ext):
def update_old_numpy_extension(ext):
update_numpy_extension(ext, set_api17_macro=False)
def update_numpy_extension(ext, set_api17_macro=True):
import numpy
from numpy.distutils.misc_util import get_info
ext.include_dirs.append(numpy.get_include())
if set_api17_macro:
ext.define_macros.append(('
NPY_NO_DEPRECATED_API
', '
NPY_1_7_API_VERSION
'))
# We need the npymath library for numpy.math.
# This is typically a static-only library.
for attr, value in get_info('
npymath
').items():
...
...
@@ -391,6 +399,7 @@ EXCLUDE_EXT = object()
EXT_EXTRAS = {
'tag:numpy' : update_numpy_extension,
'tag:numpy_old' : update_old_numpy_extension,
'tag:openmp': update_openmp_extension,
'tag:cpp11': update_cpp11_extension,
'tag:trace' : update_linetrace_extension,
...
...
tests/run/numpy_bufacc_T155.pyx
View file @
107fc454
# ticket: 155
# tag: numpy
# tag: numpy
_old
"""
>>> myfunc()
...
...
tests/run/numpy_parallel.pyx
View file @
107fc454
# tag: numpy
# tag: numpy
_old
# tag: openmp
cimport
cython
...
...
tests/run/numpy_subarray.pyx
View file @
107fc454
# tag: numpy
# tag: numpy
_old
cimport
numpy
as
np
cimport
cython
...
...
tests/run/numpy_test.pyx
View file @
107fc454
# tag: numpy
# tag: numpy
_old
# cannot be named "numpy" in order to not clash with the numpy module!
cimport
numpy
as
np
...
...
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