Skip to content

Commit

Permalink
update python wrapper build
Browse files Browse the repository at this point in the history
  • Loading branch information
smiet committed Jun 25, 2024
1 parent 9a8da7e commit 46e1dfd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/python_wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,25 @@ jobs:
name: python_wrapper build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Python3 should be pre-installed on 'ubuntu-latest'
- name: Python version info
run: |
python3 --version
pip3 --version
python --version
pip --version
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gfortran mpi-default-bin mpi-default-dev libhdf5-103 libhdf5-dev libfftw3-bin libfftw3-dev libopenblas0-openmp libopenblas-dev cmake ninja-build
pip3 install --user numpy f90nml scikit-build scipy
pip3 install --user git+https://github.com/zhucaoxiang/f90wrap@main_off
pip install numpy f90nml scikit-build scipy
pip install git+https://github.com/zhucaoxiang/f90wrap@main_off
- name: Build python_wrapper
run: |
python3 setup.py bdist_wheel
pip3 install --user dist/*.whl
pip install .
- name: Test if installation is ok
run: |
python3 -c "import spec; print('success')"
python -c "import spec; print('success')"

0 comments on commit 46e1dfd

Please sign in to comment.