Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
ea96039e
Commit
ea96039e
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
baec43d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
dep_util.py
stbi/Lib/site-packages/setuptools/dep_util.py
+23
-0
No files found.
stbi/Lib/site-packages/setuptools/dep_util.py
0 → 100644
View file @
ea96039e
from
distutils.dep_util
import
newer_group
# yes, this is was almost entirely copy-pasted from
# 'newer_pairwise()', this is just another convenience
# function.
def
newer_pairwise_group
(
sources_groups
,
targets
):
"""Walk both arguments in parallel, testing if each source group is newer
than its corresponding target. Returns a pair of lists (sources_groups,
targets) where sources is newer than target, according to the semantics
of 'newer_group()'.
"""
if
len
(
sources_groups
)
!=
len
(
targets
):
raise
ValueError
(
"'sources_group' and 'targets' must be the same length"
)
# build a pair of lists (sources_groups, targets) where source is newer
n_sources
=
[]
n_targets
=
[]
for
i
in
range
(
len
(
sources_groups
)):
if
newer_group
(
sources_groups
[
i
],
targets
[
i
]):
n_sources
.
append
(
sources_groups
[
i
])
n_targets
.
append
(
targets
[
i
])
return
n_sources
,
n_targets
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