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
1c4f32b9
Commit
1c4f32b9
authored
Oct 01, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run cythonize() in parallel in "new_build_ext" if threaded distutils build was requested.
parent
14058944
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+3
-1
No files found.
Cython/Distutils/build_ext.py
View file @
1c4f32b9
...
@@ -14,9 +14,11 @@ else:
...
@@ -14,9 +14,11 @@ else:
class
new_build_ext
(
_build_ext
,
object
):
class
new_build_ext
(
_build_ext
,
object
):
def
finalize_options
(
self
):
def
finalize_options
(
self
):
if
self
.
distribution
.
ext_modules
:
if
self
.
distribution
.
ext_modules
:
nthreads
=
getattr
(
self
,
'parallel'
,
None
)
# -j option in Py3.5+
nthreads
=
int
(
nthreads
)
if
nthreads
else
None
from
Cython.Build.Dependencies
import
cythonize
from
Cython.Build.Dependencies
import
cythonize
self
.
distribution
.
ext_modules
[:]
=
cythonize
(
self
.
distribution
.
ext_modules
[:]
=
cythonize
(
self
.
distribution
.
ext_modules
)
self
.
distribution
.
ext_modules
,
nthreads
=
nthreads
)
super
(
new_build_ext
,
self
).
finalize_options
()
super
(
new_build_ext
,
self
).
finalize_options
()
# This will become new_build_ext in the future.
# This will become new_build_ext in the future.
...
...
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