Skip to content

Commit 8fb8996

Browse files
committed
lock: do not attempt to walk up when computing relative paths
This option of relative_to appeared in Python 3.12. I estimate supporting this is not worth the additional complexity at the moment.
1 parent c04eae6 commit 8fb8996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/models/pylock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def from_install_requirement(cls, ireq: InstallRequirement, base_dir: Path) -> S
105105
package.directory = PackageDirectory(
106106
path=(
107107
Path(url_to_path(download_info.url))
108-
.relative_to(base_dir, walk_up=True)
108+
.relative_to(base_dir)
109109
.as_posix()
110110
),
111111
editable=(

0 commit comments

Comments
 (0)