Skip to content

Commit

Permalink
pip installer: convert path requirement to string
Browse files Browse the repository at this point in the history
Ensure path requirement is converted to posix string.

Relates-to: #2398
  • Loading branch information
msakai authored Jun 28, 2020
1 parent 5f27a25 commit b19873a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poetry/installation/pip_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def requirement(self, package, formatted=False):

if package.source_type in ["file", "directory"]:
if package.root_dir:
req = os.path.join(package.root_dir, package.source_url)
req = (package.root_dir / package.source_url).as_posix()
else:
req = os.path.realpath(package.source_url)

Expand Down Expand Up @@ -184,7 +184,7 @@ def install_directory(self, package):
from poetry.utils.toml_file import TomlFile

if package.root_dir:
req = os.path.join(package.root_dir, package.source_url)
req = (package.root_dir / package.source_url).as_posix()
else:
req = os.path.realpath(package.source_url)

Expand Down

0 comments on commit b19873a

Please sign in to comment.