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

Add setup.py back to fix cross compiling ARM64 #51

Merged
merged 5 commits into from
Oct 21, 2022

Conversation

sontek
Copy link
Contributor

@sontek sontek commented Oct 20, 2022

ARM64 builds are broken currently because poetry does not support platform specific builds currently. The issues for it are here:

The issues that relate to this problem are:
python-poetry/poetry#2051
python-poetry/poetry#2613

with the code for the bug it has here:
https://github.com/python-poetry/poetry-core/blob/main/src/poetry/core/masonry/builders/wheel.py#L298-L312

Basically cibuildwheel is sending a couple of environment variables that setuptools uses normally to decide platform/arch/etc.

        - _PYTHON_HOST_PLATFORM
        - ARCHFLAGS

These are not respected by poetry and so if you need to cross-compile libraries poetry is currently not the build tool for this. I think we could look at https://github.com/pypa/hatch as an alternative or send a PR to poetry to fix this. But for now this gets us back using setup.py so cross compiling works.

Pipfile.lock Outdated Show resolved Hide resolved
@kapilt
Copy link
Contributor

kapilt commented Oct 20, 2022

could you add a description on what the intent of this pr is

@sontek
Copy link
Contributor Author

sontek commented Oct 20, 2022

@kapilt Description added

Copy link
Contributor

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@sontek sontek changed the title introduce setup.py back and use pipenv Add setup.py back to fix cross compiling ARM64 Oct 20, 2022
@sontek
Copy link
Contributor Author

sontek commented Oct 21, 2022

I don't have access to merge so you'll have to do it

@kapilt kapilt merged commit 906e24a into cloud-custodian:main Oct 21, 2022
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.

None yet

2 participants