Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry can not build Universal2 or arm64 wheels for macos #7107

Closed
2 of 3 tasks
Lunarmagpie opened this issue Nov 27, 2022 · 3 comments
Closed
2 of 3 tasks

Poetry can not build Universal2 or arm64 wheels for macos #7107

Lunarmagpie opened this issue Nov 27, 2022 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@Lunarmagpie
Copy link

Lunarmagpie commented Nov 27, 2022

  • [x ] I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

When experimenting with mypyc/cibuildwheel I found that poetry can not build wheels for macos arm64 or universal2. I have used setuptools with similar configuration and wheels have built correctly.

I have opened this issue with cibuildwheel (more detailed information is here. Repo locked to commit with error & logs) pypa/cibuildwheel#1349
I think this is a problem with poetry though and not cibuildwheel.

@Lunarmagpie Lunarmagpie added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 27, 2022
@joerick
Copy link

joerick commented Dec 2, 2022

For context, cibuildwheel sets _PYTHON_HOST_PLATFORM and ARCHFLAGS for cross-compilation e.g. _PYTHON_HOST_PLATFORM=macosx-10.9-universal2 and ARCHFLAGS=-arch arm64 -arch x86_64

https://github.com/pypa/cibuildwheel/blob/5c7fc8d7ca3acffd41f7a63a2358f6dc84f4546a/cibuildwheel/macos.py#L220-L232

@neersighted
Copy link
Member

neersighted commented Dec 2, 2022

Going to call this a duplicate of #2051, with the added flavor that there are evidently standard cross compilation environment variables we can use as the knobs to customize the wheel tag.

That issue can be solved in a way that is maintainable/consistent if we respect those variables.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Dec 2, 2022
anibali added a commit to anibali/pywebp that referenced this issue Aug 31, 2023
The previous approach to building universal2 wheels does not actually
work with Poetry, as reported here:
python-poetry/poetry#7107
anibali added a commit to anibali/pywebp that referenced this issue Sep 1, 2023
The previous approach to building universal2 wheels does not actually
work with Poetry, as reported here:
python-poetry/poetry#7107

The build process has been modified to build wheels from sdist tarball
rather than the original source tree.
anibali added a commit to anibali/pywebp that referenced this issue Sep 5, 2023
The previous approach to building universal2 wheels does not actually
work with Poetry, as reported here:
python-poetry/poetry#7107

The build process has been modified to build wheels from sdist tarball
rather than the original source tree. Poetry has been removed in
favour of setuptools for the build backend and pdm for dependency
locking.
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants