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
ab2103e9
Commit
ab2103e9
authored
Sep 17, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code reformatting
parent
5d23e513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/Pipeline.py
Cython/Compiler/Pipeline.py
+5
-0
No files found.
Cython/Compiler/Pipeline.py
View file @
ab2103e9
...
...
@@ -80,6 +80,7 @@ def use_utility_code_definitions(scope, target, seen=None):
elif
entry
.
as_module
:
use_utility_code_definitions
(
entry
.
as_module
,
target
,
seen
)
def
sort_utility_codes
(
utilcodes
):
ranks
=
{}
def
get_rank
(
utilcode
):
...
...
@@ -92,19 +93,23 @@ def sort_utility_codes(utilcodes):
get_rank
(
utilcode
)
return
[
utilcode
for
utilcode
,
_
in
sorted
(
ranks
.
items
(),
key
=
lambda
kv
:
kv
[
1
])]
def
normalize_deps
(
utilcodes
):
deps
=
{}
for
utilcode
in
utilcodes
:
deps
[
utilcode
]
=
utilcode
def
unify_dep
(
dep
):
if
dep
in
deps
:
return
deps
[
dep
]
else
:
deps
[
dep
]
=
dep
return
dep
for
utilcode
in
utilcodes
:
utilcode
.
requires
=
[
unify_dep
(
dep
)
for
dep
in
utilcode
.
requires
or
()]
def
inject_utility_code_stage_factory
(
context
):
def
inject_utility_code_stage
(
module_node
):
module_node
.
prepare_utility_code
()
...
...
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