Remove incorrect os.path.join in WheelBuilder
The join is done in _build_one_inside_env.
The bug as undetected because the cache directory is absolute most of
the time.
@@ -476,10 +476,7 @@ class WheelBuilder(object):
# copy from cache to target directory
try:
ensure_dir(self._wheel_dir)
- shutil.copy(
- os.path.join(cache_dir, wheel_file),
- self._wheel_dir,
- )
+ shutil.copy(wheel_file, self._wheel_dir)
except OSError as e:
logger.warning(
"Building wheel for %s failed: %s",
