Un-optimize conditional directory creation.
@@ -1095,6 +1095,9 @@ class WheelBuilder(object):
output_dir = _cache.get_ephem_path_for_link(req.link)
else:
output_dir = _cache.get_path_for_link(req.link)
+ else:
+ output_dir = self._wheel_dir
+
try:
ensure_dir(output_dir)
except OSError as e:
@@ -1102,8 +1105,7 @@ class WheelBuilder(object):
req.name, e)
build_failure.append(req)
continue
- else:
- output_dir = self._wheel_dir
+
wheel_file = self._build_one(
req, output_dir,
python_tag=python_tag,
