Skip to content

Commit

Permalink
Update requirementslib with retry for failed wheels
Browse files Browse the repository at this point in the history
- Fixes #3692

Signed-off-by: Dan Ryan <[email protected]>
  • Loading branch information
techalchemy committed May 19, 2019
1 parent 86192bb commit 43d61d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pipenv/vendor/requirementslib/models/setup_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,12 @@ def build_sdist(self):
def build(self):
# type: () -> "SetupInfo"
dist_path = None
metadata = None
try:
dist_path = self.build_wheel()
metadata = self.get_metadata_from_wheel(
os.path.join(self.extra_kwargs["build_dir"], dist_path)
)
except Exception:
try:
dist_path = self.build_sdist()
Expand All @@ -1112,12 +1116,8 @@ def build(self):
self.populate_metadata(metadata)
except Exception:
pass
else:
metadata = self.get_metadata_from_wheel(
os.path.join(self.extra_kwargs["build_dir"], dist_path)
)
if metadata:
self.populate_metadata(metadata)
if metadata:
self.populate_metadata(metadata)
if not self.metadata or not self.name:
metadata = self.get_egg_metadata()
if metadata:
Expand Down

0 comments on commit 43d61d8

Please sign in to comment.