From 738aa35dd60340d0697bc829391af415aed7c524 Mon Sep 17 00:00:00 2001 From: caorantaoyao Date: Sun, 9 Aug 2026 00:07:07 +0800 Subject: [PATCH] fix: Installation fails on MacOS --- install-poetry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-poetry.py b/install-poetry.py index 29ad14c..a2779e3 100644 --- a/install-poetry.py +++ b/install-poetry.py @@ -327,7 +327,10 @@ def make(cls, target: Path) -> "VirtualEnvironment": import ensurepip # noqa: F401 import venv - builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False) + # Apple's framework Python executables depend on a library relative to + # their installed location. Copying one into a virtual environment + # breaks that reference (for example, @executable_path/../Python3). + builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=MACOS) context = builder.ensure_directories(target) if (