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

generate x86_64 and arm64 binaries to support MacOS M1 CPU #3514

Merged
merged 2 commits into from Dec 12, 2021

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Dec 11, 2021

Change Summary

Add arm64 binaries suitable for MacOS with an M1 CPU to PyPI.

Question 1: does this work? Can someone with an M1 mac please check.

Question 2: as per the docs it looks like x86_64 and arm64 is correct, would anyone prefer universal2 as well/instead?

Related issue number

fix #3498

@samuelcolvin samuelcolvin changed the title generate x86_64 and arm64 binaries for macos generate x86_64 and arm64 binaries for MacOS M1 CPU Dec 11, 2021
@samuelcolvin samuelcolvin changed the title generate x86_64 and arm64 binaries for MacOS M1 CPU generate x86_64 and arm64 binaries to support MacOS M1 CPU Dec 11, 2021
@samuelcolvin
Copy link
Member Author

Boundaries can be downloaded from here, click pypi_files.

@chbndrhnns
Copy link
Contributor

I tried this and could run all pydantic tests fine after downloading the binaries:

git@github.com:samuelcolvin/pydantic.git
cd pydantic
python -m venv .venv
source .venv/bin/activate
pip install pydantic-1.8.2-cp39-cp39-macosx_11_0_arm64.whl
pytest tests

@samuelcolvin
Copy link
Member Author

That's great, thanks.

@samuelcolvin samuelcolvin merged commit d36bb74 into master Dec 12, 2021
@samuelcolvin samuelcolvin deleted the arm64-binaries branch December 12, 2021 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apple silicon binaries
2 participants