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
99f0146e
Commit
99f0146e
authored
Apr 14, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate language as a special cythonize argument.
parent
2c32a61f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+2
-0
tests/build/cpp_cythonize.srctree
tests/build/cpp_cythonize.srctree
+3
-1
No files found.
Cython/Build/Dependencies.py
View file @
99f0146e
...
@@ -634,6 +634,8 @@ def create_dependency_tree(ctx=None, quiet=False):
...
@@ -634,6 +634,8 @@ def create_dependency_tree(ctx=None, quiet=False):
# This may be useful for advanced users?
# This may be useful for advanced users?
def
create_extension_list
(
patterns
,
exclude
=
None
,
ctx
=
None
,
aliases
=
None
,
quiet
=
False
,
language
=
None
,
def
create_extension_list
(
patterns
,
exclude
=
None
,
ctx
=
None
,
aliases
=
None
,
quiet
=
False
,
language
=
None
,
exclude_failures
=
False
):
exclude_failures
=
False
):
if
language
is
not
None
:
print
(
'Please put "# distutils: langauge=%s" in your .pyx or .pxd file(s)'
%
language
)
if
exclude
is
None
:
if
exclude
is
None
:
exclude
=
[]
exclude
=
[]
if
not
isinstance
(
patterns
,
(
list
,
tuple
)):
if
not
isinstance
(
patterns
,
(
list
,
tuple
)):
...
...
tests/build/cpp_cythonize.srctree
View file @
99f0146e
...
@@ -10,11 +10,13 @@ from Cython.Build.Dependencies import cythonize
...
@@ -10,11 +10,13 @@ from Cython.Build.Dependencies import cythonize
from distutils.core import setup
from distutils.core import setup
setup(
setup(
ext_modules = cythonize("*.pyx"
, language='c++'
),
ext_modules = cythonize("*.pyx"),
)
)
######## a.pyx ########
######## a.pyx ########
# distutils: language=c++
from libcpp.vector cimport vector
from libcpp.vector cimport vector
def use_vector(L):
def use_vector(L):
...
...
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