| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@caorantaoyao is attempting to deploy a commit to the Poetry Team on Vercel. A member of the Team first needs to authorize it. |
Sorry, something went wrong.
for more information, see https://pre-commit.ci
| Back | FazBrowse Home | New Git URL |
When python3 is provided by the macOS Xcode Command Line Tools (e.g. /usr/bin/python3 -> /Library/Developer/CommandLineTools/usr/bin/python3), the cpython venv it creates carries an unresolvable @executable_path/../Python3 loader reference in bin/python, so pip fails with a dyld error and the poetry install aborts.
This change makes VirtualEnvironment.make() detect that situation (sys.platform == "darwin" and /Library/Developer/CommandLineTools in sys.executable) and route through the existing robust virtualenv.pyz bootstrap (--clear --always-copy) instead of the broken cpython venv path. The branch is additive and guarded to darwin + CommandLineTools only; the normal cpython venv path is unchanged.
A new test (tests/test_installer.py) mocks the darwin/CLT interpreter and asserts the --always-copy bootstrap is used.