diff options
Diffstat (limited to 'pip/req')
-rw-r--r-- | pip/req/req_install.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pip/req/req_install.py b/pip/req/req_install.py index 7c6bb332a..1a98f377b 100644 --- a/pip/req/req_install.py +++ b/pip/req/req_install.py @@ -212,8 +212,10 @@ class InstallRequirement(object): # it's a local file, dir, or url if link: - # Normalize URLs - link.normalize() + # Handle relative file URLs + if link.scheme == 'file' and re.search(r'\.\./', link.url): + link = Link( + path_to_url(os.path.normpath(os.path.abspath(link.path)))) # wheel file if link.is_wheel: wheel = Wheel(link.filename) # can raise InvalidWheelFilename |