aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/installer.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-07-03 15:13:01 -0400
committerGitHub <noreply@github.com>2020-07-03 15:13:01 -0400
commit990237c64404876791dc5985e7cfd260852dac0e (patch)
treeeb721c8957ee48c5149af6742a27a449fb618027 /setuptools/installer.py
parenta877dab0bddaeb5503d871794ca06f1c81d805b8 (diff)
parent5f151cbbcd6c65f7f48082bfaf36db3a55df936e (diff)
downloadexternal_python_setuptools-990237c64404876791dc5985e7cfd260852dac0e.tar.gz
external_python_setuptools-990237c64404876791dc5985e7cfd260852dac0e.tar.bz2
external_python_setuptools-990237c64404876791dc5985e7cfd260852dac0e.zip
Merge pull request #2199 from cool-RR/2020-06-11-raise-from
Fix exception causes all over the codebase
Diffstat (limited to 'setuptools/installer.py')
-rw-r--r--setuptools/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/installer.py b/setuptools/installer.py
index 1f183bd9..e5acec27 100644
--- a/setuptools/installer.py
+++ b/setuptools/installer.py
@@ -127,7 +127,7 @@ def fetch_build_egg(dist, req):
try:
subprocess.check_call(cmd)
except subprocess.CalledProcessError as e:
- raise DistutilsError(str(e))
+ raise DistutilsError(str(e)) from e
wheel = Wheel(glob.glob(os.path.join(tmpdir, '*.whl'))[0])
dist_location = os.path.join(eggs_dir, wheel.egg_name())
wheel.install_as_egg(dist_location)