-
Notifications
You must be signed in to change notification settings - Fork 22
Add macOS arm64 wheel build guide and ignore rules #503
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,5 @@ CMakeFiles | |
| *.so | ||
| ecell4/*/tests/*.h5 | ||
| ecell4/*/tests/*_test | ||
| dist/ | ||
| ecell4_base.egg-info/ | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,3 +14,32 @@ What is E-Cell System? | |||||
| E-Cell System is a software platform for modeling, simulation and analysis of complex, heterogeneous and multi-scale systems like a cell. | ||||||
|
|
||||||
| See https://ecell4.e-cell.org/ | ||||||
|
|
||||||
| Build macOS arm64 wheel | ||||||
| ------------------------ | ||||||
|
|
||||||
| The following steps will build: | ||||||
| `dist/ecell4_base-2.1.2-cp310-cp310-macosx_26_0_arm64.whl` | ||||||
| on macOS Tahoe (Apple Silicon, arm64). | ||||||
|
|
||||||
| ```bash | ||||||
| # 1) Install required build dependencies | ||||||
| brew install cmake hdf5 boost gsl | ||||||
|
|
||||||
| # 2) Build wheel for arm64 | ||||||
| cd /path/to/ecell4_base | ||||||
| rm -rf dist build | ||||||
| uv venv --python 3.10 | ||||||
| # or | ||||||
| # uv venv --python 3.11 | ||||||
| # uv venv --python 3.12 | ||||||
| # uv venv --python 3.13 | ||||||
| # uv venv --python 3.14 | ||||||
| source .venv/bin/activate | ||||||
| uv pip install pip | ||||||
| CMAKE_OSX_ARCHITECTURES=arm64 pip wheel . -w dist --no-deps | ||||||
|
||||||
| CMAKE_OSX_ARCHITECTURES=arm64 pip wheel . -w dist --no-deps | |
| MACOSX_DEPLOYMENT_TARGET=14.0 CMAKE_OSX_ARCHITECTURES=arm64 pip wheel . -w dist --no-deps |
Copilot
AI
Mar 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This verification step hard-codes the wheel filename (version/ABI/platform tag). If the user builds with a different Python version (the guide suggests 3.11+ above) or a different deployment target, the filename will differ and this command will fail. Consider using a glob (dist/*.whl) or showing how to discover the built wheel name (e.g., listing dist/) before installing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wheel filename here is hard-coded to a specific project version, Python ABI (cp310), and macOS tag (macosx_26_0_arm64). This will be different for other Python versions and depending on the build machine/deployment target, so readers following the guide may not find this exact file. Consider describing the output as a pattern (e.g., dist/*.whl) and/or referencing variables like and instead of a single concrete filename.