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
14f8fc4e
Commit
14f8fc4e
authored
Oct 22, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
463643e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/Dependencies.py
Cython/Compiler/Dependencies.py
+5
-5
No files found.
Cython/Compiler/Dependencies.py
View file @
14f8fc4e
...
...
@@ -444,19 +444,19 @@ def cythonize(module_list, ctx=None, nthreads=0, aliases=None):
print
(
"multiprocessing required for parallel cythonization"
)
nthreads
=
0
pool
=
multiprocessing
.
Pool
(
nthreads
)
pool
.
map
(
cython
o
ize_one_helper
,
to_compile
)
pool
.
map
(
cythonize_one_helper
,
to_compile
)
if
not
nthreads
:
for
priority
,
pyx_file
,
c_file
in
to_compile
:
cython
o
ize_one
(
pyx_file
,
c_file
)
cythonize_one
(
pyx_file
,
c_file
)
return
module_list
cython_py
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'../../cython.py'
))
def
cython
o
ize_one
(
pyx_file
,
c_file
):
def
cythonize_one
(
pyx_file
,
c_file
):
cmd
=
"%s %s %s -o %s"
%
(
sys
.
executable
,
cython_py
,
pyx_file
,
c_file
)
print
(
cmd
)
if
os
.
system
(
cmd
)
!=
0
:
raise
CompilerError
(
pyx_file
)
def
cython
o
ize_one_helper
(
m
):
return
cython
o
ize_one
(
*
m
[
1
:])
def
cythonize_one_helper
(
m
):
return
cythonize_one
(
*
m
[
1
:])
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