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
Kirill Smelkov
cython
Commits
e39ab940
Commit
e39ab940
authored
Mar 30, 2019
by
Stefan Behnel
Committed by
GitHub
Mar 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2904 from jdemeyer/remove_includes_deprecated
Remove Cython/Includes/Deprecated
parents
5c6a9024
d206ba81
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
1 addition
and
182 deletions
+1
-182
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+0
-19
Cython/Includes/Deprecated/python.pxd
Cython/Includes/Deprecated/python.pxd
+0
-2
Cython/Includes/Deprecated/python_bool.pxd
Cython/Includes/Deprecated/python_bool.pxd
+0
-2
Cython/Includes/Deprecated/python_buffer.pxd
Cython/Includes/Deprecated/python_buffer.pxd
+0
-2
Cython/Includes/Deprecated/python_bytes.pxd
Cython/Includes/Deprecated/python_bytes.pxd
+0
-2
Cython/Includes/Deprecated/python_cobject.pxd
Cython/Includes/Deprecated/python_cobject.pxd
+0
-2
Cython/Includes/Deprecated/python_complex.pxd
Cython/Includes/Deprecated/python_complex.pxd
+0
-2
Cython/Includes/Deprecated/python_dict.pxd
Cython/Includes/Deprecated/python_dict.pxd
+0
-2
Cython/Includes/Deprecated/python_exc.pxd
Cython/Includes/Deprecated/python_exc.pxd
+0
-2
Cython/Includes/Deprecated/python_float.pxd
Cython/Includes/Deprecated/python_float.pxd
+0
-2
Cython/Includes/Deprecated/python_function.pxd
Cython/Includes/Deprecated/python_function.pxd
+0
-2
Cython/Includes/Deprecated/python_getargs.pxd
Cython/Includes/Deprecated/python_getargs.pxd
+0
-2
Cython/Includes/Deprecated/python_instance.pxd
Cython/Includes/Deprecated/python_instance.pxd
+0
-2
Cython/Includes/Deprecated/python_int.pxd
Cython/Includes/Deprecated/python_int.pxd
+0
-2
Cython/Includes/Deprecated/python_iterator.pxd
Cython/Includes/Deprecated/python_iterator.pxd
+0
-2
Cython/Includes/Deprecated/python_list.pxd
Cython/Includes/Deprecated/python_list.pxd
+0
-2
Cython/Includes/Deprecated/python_long.pxd
Cython/Includes/Deprecated/python_long.pxd
+0
-2
Cython/Includes/Deprecated/python_mapping.pxd
Cython/Includes/Deprecated/python_mapping.pxd
+0
-2
Cython/Includes/Deprecated/python_mem.pxd
Cython/Includes/Deprecated/python_mem.pxd
+0
-2
Cython/Includes/Deprecated/python_method.pxd
Cython/Includes/Deprecated/python_method.pxd
+0
-2
Cython/Includes/Deprecated/python_module.pxd
Cython/Includes/Deprecated/python_module.pxd
+0
-2
Cython/Includes/Deprecated/python_number.pxd
Cython/Includes/Deprecated/python_number.pxd
+0
-2
Cython/Includes/Deprecated/python_object.pxd
Cython/Includes/Deprecated/python_object.pxd
+0
-2
Cython/Includes/Deprecated/python_oldbuffer.pxd
Cython/Includes/Deprecated/python_oldbuffer.pxd
+0
-2
Cython/Includes/Deprecated/python_pycapsule.pxd
Cython/Includes/Deprecated/python_pycapsule.pxd
+0
-2
Cython/Includes/Deprecated/python_ref.pxd
Cython/Includes/Deprecated/python_ref.pxd
+0
-2
Cython/Includes/Deprecated/python_sequence.pxd
Cython/Includes/Deprecated/python_sequence.pxd
+0
-2
Cython/Includes/Deprecated/python_set.pxd
Cython/Includes/Deprecated/python_set.pxd
+0
-2
Cython/Includes/Deprecated/python_string.pxd
Cython/Includes/Deprecated/python_string.pxd
+0
-2
Cython/Includes/Deprecated/python_tuple.pxd
Cython/Includes/Deprecated/python_tuple.pxd
+0
-2
Cython/Includes/Deprecated/python_type.pxd
Cython/Includes/Deprecated/python_type.pxd
+0
-2
Cython/Includes/Deprecated/python_unicode.pxd
Cython/Includes/Deprecated/python_unicode.pxd
+0
-2
Cython/Includes/Deprecated/python_version.pxd
Cython/Includes/Deprecated/python_version.pxd
+0
-2
Cython/Includes/Deprecated/python_weakref.pxd
Cython/Includes/Deprecated/python_weakref.pxd
+0
-2
Cython/Includes/Deprecated/stdio.pxd
Cython/Includes/Deprecated/stdio.pxd
+0
-2
Cython/Includes/Deprecated/stdlib.pxd
Cython/Includes/Deprecated/stdlib.pxd
+0
-2
Cython/Includes/Deprecated/stl.pxd
Cython/Includes/Deprecated/stl.pxd
+0
-91
setup.py
setup.py
+1
-2
No files found.
Cython/Compiler/Main.py
View file @
e39ab940
...
@@ -233,25 +233,6 @@ class Context(object):
...
@@ -233,25 +233,6 @@ class Context(object):
# for a dotted filename, and its containing package root
# for a dotted filename, and its containing package root
# directory is searched first for a non-dotted filename.
# directory is searched first for a non-dotted filename.
pxd
=
self
.
search_include_directories
(
qualified_name
,
".pxd"
,
pos
,
sys_path
=
sys_path
)
pxd
=
self
.
search_include_directories
(
qualified_name
,
".pxd"
,
pos
,
sys_path
=
sys_path
)
if
pxd
is
None
:
# XXX Keep this until Includes/Deprecated is removed
if
(
qualified_name
.
startswith
(
'python'
)
or
qualified_name
in
(
'stdlib'
,
'stdio'
,
'stl'
)):
standard_include_path
=
os
.
path
.
abspath
(
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
os
.
path
.
pardir
,
'Includes'
)))
deprecated_include_path
=
os
.
path
.
join
(
standard_include_path
,
'Deprecated'
)
self
.
include_directories
.
append
(
deprecated_include_path
)
try
:
pxd
=
self
.
search_include_directories
(
qualified_name
,
".pxd"
,
pos
)
finally
:
self
.
include_directories
.
pop
()
if
pxd
:
name
=
qualified_name
if
name
.
startswith
(
'python'
):
warning
(
pos
,
"'%s' is deprecated, use 'cpython'"
%
name
,
1
)
elif
name
in
(
'stdlib'
,
'stdio'
):
warning
(
pos
,
"'%s' is deprecated, use 'libc.%s'"
%
(
name
,
name
),
1
)
elif
name
in
(
'stl'
):
warning
(
pos
,
"'%s' is deprecated, use 'libcpp.*.*'"
%
name
,
1
)
if
pxd
is
None
and
Options
.
cimport_from_pyx
:
if
pxd
is
None
and
Options
.
cimport_from_pyx
:
return
self
.
find_pyx_file
(
qualified_name
,
pos
)
return
self
.
find_pyx_file
(
qualified_name
,
pos
)
return
pxd
return
pxd
...
...
Cython/Includes/Deprecated/python.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython
cimport
*
Cython/Includes/Deprecated/python_bool.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.bool
cimport
*
Cython/Includes/Deprecated/python_buffer.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.buffer
cimport
*
Cython/Includes/Deprecated/python_bytes.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.bytes
cimport
*
Cython/Includes/Deprecated/python_cobject.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.cobject
cimport
*
Cython/Includes/Deprecated/python_complex.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.complex
cimport
*
Cython/Includes/Deprecated/python_dict.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.dict
cimport
*
Cython/Includes/Deprecated/python_exc.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.exc
cimport
*
Cython/Includes/Deprecated/python_float.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.float
cimport
*
Cython/Includes/Deprecated/python_function.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.function
cimport
*
Cython/Includes/Deprecated/python_getargs.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.getargs
cimport
*
Cython/Includes/Deprecated/python_instance.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.instance
cimport
*
Cython/Includes/Deprecated/python_int.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.int
cimport
*
Cython/Includes/Deprecated/python_iterator.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.iterator
cimport
*
Cython/Includes/Deprecated/python_list.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.list
cimport
*
Cython/Includes/Deprecated/python_long.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.long
cimport
*
Cython/Includes/Deprecated/python_mapping.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.mapping
cimport
*
Cython/Includes/Deprecated/python_mem.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.mem
cimport
*
Cython/Includes/Deprecated/python_method.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.method
cimport
*
Cython/Includes/Deprecated/python_module.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.module
cimport
*
Cython/Includes/Deprecated/python_number.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.number
cimport
*
Cython/Includes/Deprecated/python_object.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.object
cimport
*
Cython/Includes/Deprecated/python_oldbuffer.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.oldbuffer
cimport
*
Cython/Includes/Deprecated/python_pycapsule.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.pycapsule
cimport
*
Cython/Includes/Deprecated/python_ref.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.ref
cimport
*
Cython/Includes/Deprecated/python_sequence.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.sequence
cimport
*
Cython/Includes/Deprecated/python_set.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.set
cimport
*
Cython/Includes/Deprecated/python_string.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.string
cimport
*
Cython/Includes/Deprecated/python_tuple.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.tuple
cimport
*
Cython/Includes/Deprecated/python_type.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.type
cimport
*
Cython/Includes/Deprecated/python_unicode.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.unicode
cimport
*
Cython/Includes/Deprecated/python_version.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.version
cimport
*
Cython/Includes/Deprecated/python_weakref.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
cpython.weakref
cimport
*
Cython/Includes/Deprecated/stdio.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
libc.stdio
cimport
*
Cython/Includes/Deprecated/stdlib.pxd
deleted
100644 → 0
View file @
5c6a9024
# Present for backwards compatibility
from
libc.stdlib
cimport
*
Cython/Includes/Deprecated/stl.pxd
deleted
100644 → 0
View file @
5c6a9024
cdef
extern
from
"<vector>"
namespace
std
:
cdef
cppclass
vector
[
TYPE
]:
#constructors
__init__
()
__init__
(
vector
&
)
__init__
(
int
)
__init__
(
int
,
TYPE
&
)
__init__
(
iterator
,
iterator
)
#operators
TYPE
&
__getitem__
(
int
)
TYPE
&
__setitem__
(
int
,
TYPE
&
)
vector
__new__
(
vector
&
)
bool
__eq__
(
vector
&
,
vector
&
)
bool
__ne__
(
vector
&
,
vector
&
)
bool
__lt__
(
vector
&
,
vector
&
)
bool
__gt__
(
vector
&
,
vector
&
)
bool
__le__
(
vector
&
,
vector
&
)
bool
__ge__
(
vector
&
,
vector
&
)
#others
void
assign
(
int
,
TYPE
)
#void assign(iterator, iterator)
TYPE
&
at
(
int
)
TYPE
&
back
()
iterator
begin
()
int
capacity
()
void
clear
()
bool
empty
()
iterator
end
()
iterator
erase
(
iterator
)
iterator
erase
(
iterator
,
iterator
)
TYPE
&
front
()
iterator
insert
(
iterator
,
TYPE
&
)
void
insert
(
iterator
,
int
,
TYPE
&
)
void
insert
(
iterator
,
iterator
)
int
max_size
()
void
pop_back
()
void
push_back
(
TYPE
&
)
iterator
rbegin
()
iterator
rend
()
void
reserve
(
int
)
void
resize
(
int
)
void
resize
(
int
,
TYPE
&
)
#void resize(size_type num, const TYPE& = TYPE())
int
size
()
void
swap
(
container
&
)
cdef
extern
from
"<deque>"
namespace
std
:
cdef
cppclass
deque
[
TYPE
]:
#constructors
__init__
()
__init__
(
deque
&
)
__init__
(
int
)
__init__
(
int
,
TYPE
&
)
__init__
(
iterator
,
iterator
)
#operators
TYPE
&
operator
[](
size_type
index
);
const
TYPE
&
operator
[](
size_type
index
)
const
;
deque
__new__
(
deque
&
);
bool
__eq__
(
deque
&
,
deque
&
);
bool
__ne__
(
deque
&
,
deque
&
);
bool
__lt__
(
deque
&
,
deque
&
);
bool
__gt__
(
deque
&
,
deque
&
);
bool
__le__
(
deque
&
,
deque
&
);
bool
__ge__
(
deque
&
,
deque
&
);
#others
void
assign
(
int
,
TYPE
&
)
void
assign
(
iterator
,
iterator
)
TYPE
&
at
(
int
)
TYPE
&
back
()
iterator
begin
()
void
clear
()
bool
empty
()
iterator
end
()
iterator
erase
(
iterator
)
iterator
erase
(
iterator
,
iterator
)
TYPE
&
front
()
iterator
insert
(
iterator
,
TYPE
&
)
void
insert
(
iterator
,
int
,
TYPE
&
)
void
insert
(
iterator
,
iterator
,
iterator
)
int
max_size
()
void
pop_back
()
void
pop_front
()
void
push_back
(
TYPE
&
)
void
push_front
(
TYPE
&
)
iterator
rbegin
()
iterator
rend
()
void
resize
(
int
)
void
resize
(
int
,
TYPE
&
)
int
size
()
void
swap
(
container
&
)
setup.py
View file @
e39ab940
...
@@ -42,8 +42,7 @@ pxd_include_dirs = [
...
@@ -42,8 +42,7 @@ pxd_include_dirs = [
directory
for
directory
,
dirs
,
files
directory
for
directory
,
dirs
,
files
in
os
.
walk
(
os
.
path
.
join
(
'Cython'
,
'Includes'
))
in
os
.
walk
(
os
.
path
.
join
(
'Cython'
,
'Includes'
))
if
'__init__.pyx'
in
files
or
'__init__.pxd'
in
files
if
'__init__.pyx'
in
files
or
'__init__.pxd'
in
files
or
directory
==
os
.
path
.
join
(
'Cython'
,
'Includes'
)
or
directory
==
os
.
path
.
join
(
'Cython'
,
'Includes'
)]
or
directory
==
os
.
path
.
join
(
'Cython'
,
'Includes'
,
'Deprecated'
)]
pxd_include_patterns
=
[
pxd_include_patterns
=
[
p
+
'/*.pxd'
for
p
in
pxd_include_dirs
]
+
[
p
+
'/*.pxd'
for
p
in
pxd_include_dirs
]
+
[
...
...
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