Skip to content

Commit

Permalink
[build] fix MacOS X build: add ninja as req
Browse files Browse the repository at this point in the history
* Print f2py:meson build logs in github actions
* add ninja as requirement
  • Loading branch information
Thoemi09 authored Jan 25, 2024
1 parent 194cc57 commit 3cf7197
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
source $HOME/install/share/triqs/triqsvars.sh
mkdir build && cd build && cmake ..
make -j2 || make -j1 VERBOSE=1
- name: Print logs
if: ${{ failure() }}
run: |
cat $(find . -name meson-log.txt)
- name: Test app4triqs
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_custom_target(${module_name} ALL
##generate the fortran python wrapper shared library
add_custom_command(
OUTPUT ${generated_module_file}
COMMAND ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --f90exec=${CMAKE_Fortran_COMPILER} --f77exec=${CMAKE_Fortran_COMPILER} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
COMMAND ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --build-dir ${CMAKE_CURRENT_BINARY_DIR}/meson --f90exec=${CMAKE_Fortran_COMPILER} --f77exec=${CMAKE_Fortran_COMPILER} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ numpy
scipy
meson
setuptools
ninja

0 comments on commit 3cf7197

Please sign in to comment.