mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Add exception handling for non-existent setup_py_dir
Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
@@ -284,7 +284,7 @@ class PyPIRepository(BaseRepository):
|
||||
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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user