Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
3fcd44be
Commit
3fcd44be
authored
Jun 08, 2016
by
Jens Timmerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if a download is successfull before deciding not to try the next possible dist
parent
21ab99e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
setuptools/package_index.py
setuptools/package_index.py
+8
-6
No files found.
setuptools/package_index.py
View file @
3fcd44be
...
...
@@ -602,24 +602,26 @@ class PackageIndex(Environment):
continue
if dist in req and (dist.precedence <= SOURCE_DIST or not source):
return dist
mylocation = self.download(dist.location, tmpdir)
if os.path.exists(mylocation):
return dist, mylocation
if force_scan:
self.prescan()
self.find_packages(requirement)
dist = find(requirement)
dist
, mylocation
= find(requirement)
if local_index is not None:
dist
= dist or
find(requirement, local_index)
dist
, mylocation = dist, mylocation if dist else
find(requirement, local_index)
if dist is None:
if self.to_scan is not None:
self.prescan()
dist = find(requirement)
dist
, mylocation
= find(requirement)
if dist is None and not force_scan:
self.find_packages(requirement)
dist = find(requirement)
dist
, mylocation
= find(requirement)
if dist is None:
self.warn(
...
...
@@ -629,7 +631,7 @@ class PackageIndex(Environment):
)
else:
self.info("Best match: %s", dist)
return dist.clone(location=
self.download(dist.location, tmpdir)
)
return dist.clone(location=
mylocation
)
def fetch(self, requirement, tmpdir, force_scan=False, source=False):
"""
Obtain
a
file
suitable
for
fulfilling
`requirement`
...
...
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