Drop a conditional
Why: The metadata directory is always going to be available here. The
method is called *after* metadata generation.
@@ -445,8 +445,7 @@ class InstallRequirement(object):
path=new_location, kind="req-install",
)
- # Correct the metadata directory, if it exists
- if self.metadata_directory:
+ # Correct the metadata directory
old_meta = self.metadata_directory
rel = os.path.relpath(old_meta, start=old_location.path)
new_meta = os.path.join(new_location, rel)
