Description
Poetry installation via vfox-poetry fails on macOS (and potentially other platforms) when using precompiled Python binaries (e.g., those installed by mise). The Poetry installer creates a virtual environment with symlinks=False, which causes a missing libpython3.*.dylib error:
dyld: Library not loaded: @executable_path/../lib/libpython3.XX.dylib
Referenced from: .../installs/poetry/<version>/venv/bin/python3
Reason: tried: '...' (no such file)
Prior Art
This exact issue was previously reported and fixed in the old asdf-based plugin:
The fix was to pipe the installer script through sed 's/symlinks=False/symlinks=True/' before execution, so that the venv is created with symlinks instead of copies.
Suggested Fix
Apply the same sed 's/symlinks=False/symlinks=True/' transformation to the downloaded Poetry installer script before executing it, as was done in mise-poetry#14.
Description
Poetry installation via
vfox-poetryfails on macOS (and potentially other platforms) when using precompiled Python binaries (e.g., those installed by mise). The Poetry installer creates a virtual environment withsymlinks=False, which causes a missinglibpython3.*.dyliberror:Prior Art
This exact issue was previously reported and fixed in the old asdf-based plugin:
The fix was to pipe the installer script through
sed 's/symlinks=False/symlinks=True/'before execution, so that the venv is created with symlinks instead of copies.Suggested Fix
Apply the same
sed 's/symlinks=False/symlinks=True/'transformation to the downloaded Poetry installer script before executing it, as was done in mise-poetry#14.