Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Nov 25, 2024
1 parent e24dad1 commit 8db14b9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ jobs:
steps:
- uses: actions/setup-python@v5
with:
version: 3.12
python-version: 3.12

- name: Install Python dependencies
run: python -m pip install cibuildwheel simple503 wheel
run: python -m pip install cibuildwheel simple503 build

- name: Checkout Basix
if: ${{ github.event.inputs.build_fenicsx_stack == 'true' }}
Expand All @@ -87,8 +87,8 @@ jobs:

- name: Build Basix wheel
if: ${{ github.event.inputs.build_fenicsx_stack == 'true' }}
working-directory: basix
run: |
cd basix
python -m cibuildwheel --output-dir ../wheelhouse .
- name: Checkout UFL
Expand All @@ -101,7 +101,8 @@ jobs:

- name: Build UFL wheel
if: ${{ github.event.inputs.build_fenicsx_stack == 'true' }}
run: python -m pip wheel --no-deps -w wheelhouse ./ufl
working-directory: ufl
run: python -m build --outdir wheelhouse/ .

- name: Checkout FFCx
if: ${{ github.event.inputs.build_fenicsx_stack == 'true' }}
Expand All @@ -113,7 +114,7 @@ jobs:

- name: Build FFCx wheel
if: ${{ github.event.inputs.build_fenicsx_stack == 'true' }}
run: python -m pip wheel --no-deps -w wheelhouse ./ffcx
run: python -m build --outdir wheelhouse/ .

- name: Make temporary simple503 repository
run: |
Expand All @@ -137,7 +138,7 @@ jobs:
- name: Build DOLFINx wheel
run: python -m cibuildwheel --output-dir wheelhouse dolfinx/python
env:
CIBW_BEFORE_BUILD: yum -y update && yum -y install mpich && python -m pip -v install --prefer-binary fenics-ffcx fenics-basix fenics-ufl && python -m pip -v install --prefer-binary mpi4py -i https://pypi.anaconda.org/mpi4py/simple && cmake -S dolfinx/cpp -B build-dir -DPython3_EXECUTABLE=$(which python) && cmake --build build-dir && cmake --install build-dir
CIBW_BEFORE_BUILD: yum -y update && yum -y install mpich-devel && python -m pip -v install --prefer-binary fenics-ffcx fenics-basix fenics-ufl && python -m pip -v install --prefer-binary mpi4py -i https://pypi.anaconda.org/mpi4py/simple && cmake -S dolfinx/cpp -B build-dir -DPython3_EXECUTABLE=$(which python) && cmake --build build-dir && cmake --install build-dir
CIBW_REPAIR_WHEEL_COMMAND_LINUX: export LD_LIBRARY_PATH=$(python -c "import site; print(site.getsitepackages()[0] + '/fenics_basix.libs')"):${LD_LIBRARY_PATH} && auditwheel repair -w {dest_dir} {wheel}
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=file:///project/simple MAKEFLAGS=-j3 LD_LIBRARY_PATH=/usr/lib64/mpich/lib

Expand Down

0 comments on commit 8db14b9

Please sign in to comment.