Skip to content

Commit

Permalink
fix: append subdirectory to archive path (#7575)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymander committed Mar 1, 2023
1 parent 756e37d commit 9544b7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ def _prepare_archive(self, operation: Install | Update) -> Path:

assert package.source_url is not None
archive = Path(package.source_url)
if package.source_subdirectory:
archive = archive / package.source_subdirectory
if not Path(package.source_url).is_absolute() and package.root_dir:
archive = package.root_dir / archive

Expand Down

0 comments on commit 9544b7c

Please sign in to comment.