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
350f462a
Commit
350f462a
authored
Mar 11, 2017
by
syrte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep 8 formatting
parent
64801957
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Cython/Build/IpythonMagic.py
Cython/Build/IpythonMagic.py
+17
-17
No files found.
Cython/Build/IpythonMagic.py
View file @
350f462a
...
@@ -87,7 +87,7 @@ from .Dependencies import cythonize
...
@@ -87,7 +87,7 @@ from .Dependencies import cythonize
class
CythonMagics
(
Magics
):
class
CythonMagics
(
Magics
):
def
__init__
(
self
,
shell
):
def
__init__
(
self
,
shell
):
super
(
CythonMagics
,
self
).
__init__
(
shell
)
super
(
CythonMagics
,
self
).
__init__
(
shell
)
self
.
_reloads
=
{}
self
.
_reloads
=
{}
self
.
_code_cache
=
{}
self
.
_code_cache
=
{}
self
.
_pyximport_installed
=
False
self
.
_pyximport_installed
=
False
...
@@ -237,7 +237,7 @@ class CythonMagics(Magics):
...
@@ -237,7 +237,7 @@ class CythonMagics(Magics):
...
...
"""
"""
args
=
magic_arguments
.
parse_argstring
(
self
.
cython
,
line
)
args
=
magic_arguments
.
parse_argstring
(
self
.
cython
,
line
)
code
=
cell
if
cell
.
endswith
(
'
\
n
'
)
else
cell
+
'
\
n
'
code
=
cell
if
cell
.
endswith
(
'
\
n
'
)
else
cell
+
'
\
n
'
lib_dir
=
os
.
path
.
join
(
get_ipython_cache_dir
(),
'cython'
)
lib_dir
=
os
.
path
.
join
(
get_ipython_cache_dir
(),
'cython'
)
quiet
=
True
quiet
=
True
key
=
code
,
line
,
sys
.
version_info
,
sys
.
executable
,
cython_version
key
=
code
,
line
,
sys
.
version_info
,
sys
.
executable
,
cython_version
...
@@ -275,14 +275,14 @@ class CythonMagics(Magics):
...
@@ -275,14 +275,14 @@ class CythonMagics(Magics):
with
io
.
open
(
pyx_file
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
with
io
.
open
(
pyx_file
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
code
)
f
.
write
(
code
)
extension
=
Extension
(
extension
=
Extension
(
name
=
module_name
,
name
=
module_name
,
sources
=
[
pyx_file
]
+
c_src_files
,
sources
=
[
pyx_file
]
+
c_src_files
,
include_dirs
=
c_include_dirs
,
include_dirs
=
c_include_dirs
,
library_dirs
=
args
.
library_dirs
,
library_dirs
=
args
.
library_dirs
,
extra_compile_args
=
args
.
compile_args
,
extra_compile_args
=
args
.
compile_args
,
extra_link_args
=
args
.
link_args
,
extra_link_args
=
args
.
link_args
,
libraries
=
args
.
lib
,
libraries
=
args
.
lib
,
language
=
'c++'
if
args
.
cplus
else
'c'
,
language
=
'c++'
if
args
.
cplus
else
'c'
,
)
)
build_extension
=
self
.
_get_build_extension
()
build_extension
=
self
.
_get_build_extension
()
try
:
try
:
...
@@ -372,8 +372,8 @@ class CythonMagics(Magics):
...
@@ -372,8 +372,8 @@ class CythonMagics(Magics):
__doc__
=
__doc__
.
format
(
__doc__
=
__doc__
.
format
(
# rST doesn't see the -+ flag as part of an option list, so we
# rST doesn't see the -+ flag as part of an option list, so we
# hide it from the module-level docstring.
# hide it from the module-level docstring.
CYTHON_DOC
=
dedent
(
CythonMagics
.
cython
.
__doc__
\
CYTHON_DOC
=
dedent
(
CythonMagics
.
cython
.
__doc__
\
.
replace
(
'-+, --cplus'
,
'--cplus '
)),
.
replace
(
'-+, --cplus'
,
'--cplus '
)),
CYTHON_INLINE_DOC
=
dedent
(
CythonMagics
.
cython_inline
.
__doc__
),
CYTHON_INLINE_DOC
=
dedent
(
CythonMagics
.
cython_inline
.
__doc__
),
CYTHON_PYXIMPORT_DOC
=
dedent
(
CythonMagics
.
cython_pyximport
.
__doc__
),
CYTHON_PYXIMPORT_DOC
=
dedent
(
CythonMagics
.
cython_pyximport
.
__doc__
),
)
)
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