Skip to content

Commit

Permalink
Add exception handling for non-existent setup_py_dir
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <dan@danryan.co>
  • Loading branch information
techalchemy committed Jul 25, 2018
1 parent c584739 commit dc97d73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipenv/patched/piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_legacy_dependencies(self, ireq):
with chdir(ireq.setup_py_dir):
from setuptools.dist import distutils
distutils.core.run_setup(ireq.setup_py)
except (ImportError, InstallationError):
except (ImportError, InstallationError, TypeError):
pass
try:
dist = ireq.get_dist()
Expand Down
2 changes: 1 addition & 1 deletion tasks/vendoring/patches/patched/piptools.patch
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ index 1c4b943..91902dc 100644
+ with chdir(ireq.setup_py_dir):
+ from setuptools.dist import distutils
+ distutils.core.run_setup(ireq.setup_py)
+ except (ImportError, InstallationError):
+ except (ImportError, InstallationError, TypeError):
+ pass
+ try:
+ dist = ireq.get_dist()
Expand Down

0 comments on commit dc97d73

Please sign in to comment.