aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/installer.py
diff options
context:
space:
mode:
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)