Skip to content

Commit 738aa35

Browse files
committed
fix: Installation fails on MacOS
1 parent d7fd050 commit 738aa35

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎install-poetry.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ def make(cls, target: Path) -> "VirtualEnvironment":
327327
import ensurepip # noqa: F401
328328
import venv
329329

330-
builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False)
330+
# Apple's framework Python executables depend on a library relative to
331+
# their installed location. Copying one into a virtual environment
332+
# breaks that reference (for example, @executable_path/../Python3).
333+
builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=MACOS)
331334
context = builder.ensure_directories(target)
332335

333336
if (

0 commit comments

Comments
 (0)