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: python-poetry#2398
  • Loading branch information
msakai authored and abn committed Jul 20, 2020
1 parent 97801e2 commit add1b00
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 @@ -142,7 +142,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 @@ -185,7 +185,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 add1b00

Please sign in to comment.