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

chore: Add support to build on Mac silicon #491

Open
alekst23 opened this issue May 9, 2024 · 0 comments · May be fixed by #507
Open

chore: Add support to build on Mac silicon #491

alekst23 opened this issue May 9, 2024 · 0 comments · May be fixed by #507
Assignees
Labels
possible-bug 🐛 Something may not be working

Comments

@alekst23
Copy link

alekst23 commented May 9, 2024

Issue

Currently the project cannot be built on Mac silicon. The problem displays itself as missing dependency files during the build process.

Analysis

The issue happens because the build process builds all dependency wheels on the local machine, which builds wheels for the host system architecture.

Example:

0.689 INFO: pip is looking at multiple versions of leapfrogai-api to determine which version is compatible with other requirements. This could take a while.
0.690 ERROR: Could not find a version that satisfies the requirement watchfiles>=0.21.0 (from leapfrogai-api) (from versions: none)
0.690 ERROR: No matching distribution found for watchfiles>=0.21.0

Solution

The solution involves adjusting our build process to build specifically for the linux Docker containers. The way to do this is by moving all wheel creation functions to inside the docker container setup, into the Dockerfiles for each package and out of the Makefile.

@alekst23 alekst23 added the possible-bug 🐛 Something may not be working label May 9, 2024
@alekst23 alekst23 linked a pull request May 14, 2024 that will close this issue
@alekst23 alekst23 self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug 🐛 Something may not be working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant