Skip to content

Conversation

bizzyvinci
Copy link
Contributor

A lot of the current issue has to do with installation. I experienced a similar problem with curl -sSL https://install.python-poetry.org | python3 - on M1 Mac v13.0.1. The cause of the problem is symlink and it is resolved in this PR. Recommendations were provided here and here.

I tested by running python install-poetry.py on my mac and poetry was installed successfully. I believe this should resolve #24 too.

However, I also find it surprising that python install-poetry.py -y in github workflows works for macos. It should be investigated.

@vercel
Copy link

vercel bot commented Dec 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
install-python-poetry-org ✅ Ready (Inspect) Visit Preview Dec 6, 2022 at 6:21PM (UTC)

@neersighted
Copy link
Member

neersighted commented Dec 6, 2022

Poetry installs just fine on Unix; the issue is that macOS framework builds cannot be relocated (this is part of the framework design). Poetry works on GHA because setup-python provides from-source, upstream-style builds of Python. pyenv/python-build do the same. The macOS system Python and Homebrew Python are built as frameworks.

In any case, this is not a complete solution -- we still want to copy on Linux and FreeBSD, and you haven't addressed the virtualenv fallback code path. The status of this is honestly the same as #51 -- the intention is to address it in a more robust way, but people have struggled for time lately. If you address the omissions and encapsulate the logic into a function, we could likely merge this as a stepping stone to proper detection of framework Pythons.

@bizzyvinci
Copy link
Contributor Author

Thanks for the quick feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation fails on MacOS
2 participants