Skip to content

ENH: Relax restrictions on forcing amd64 images#17

Open
mberz wants to merge 3 commits into
developfrom
enh/native_docker_image_de
Open

ENH: Relax restrictions on forcing amd64 images#17
mberz wants to merge 3 commits into
developfrom
enh/native_docker_image_de

Conversation

@mberz

@mberz mberz commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

  • Support building arm64 images by installing python3-gmsh via the apt package manager instead of pypi, since pypi does not support linux/arm64 packages
  • If the Gmsh version installed through apt-get it is not re-installed/overwritten via pip
  • This primarily affects macOS arm64 processors with linux/arm images

arm64 images can be built when installing python3-gmsh via the apt
package manager instead of pypi
@mberz mberz requested a review from Copilot June 9, 2026 14:16
@mberz mberz moved this from Backlog to Implementation in progress in CHORAS planning Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the de_method container build to better support arm64 (e.g., macOS Apple Silicon building linux/arm images) by sourcing the Gmsh Python bindings from the OS package manager instead of relying on PyPI wheels, and relaxes CI’s forced amd64 build for this method.

Changes:

  • Install python3-gmsh (and libgmsh-dev) via apt-get in the de_method Docker image.
  • Expose the Debian-installed gmsh Python module to the /usr/local Python environment via symlinks into site-packages.
  • Remove the explicit --platform=linux/amd64 flag from the acousticDE Docker build workflow step.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
de_method/Dockerfile Installs system Gmsh Python bindings and makes them importable from the image’s Python environment to support arm64 builds.
.github/workflows/acousticDE.yml Stops forcing amd64 in the Docker build step, enabling native-arch builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mberz added 2 commits June 10, 2026 10:03
The dependency management for gmsh should be replaced with a better
solution
@mberz mberz changed the title ENH: Relax restrictions on forcing amd64 images for de ENH: Relax restrictions on forcing amd64 images Jun 10, 2026
@mberz mberz requested a review from Copilot June 10, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment on lines 28 to 32
dependencies = [
"numpy>=1.23.0",
"gmsh",
"pyroomacoustics>=0.8.0",
"requests",
"pyfar>=0.8.0",
Comment on lines +1 to +2
# Use Python 3.11 slim image for smaller size
FROM python:3.11-slim
Comment thread pyroomacoustics_method/Dockerfile
Comment thread de_method/Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Implementation in progress

Development

Successfully merging this pull request may close these issues.

3 participants