Skip to content

Commit

Permalink
Inreplaces for python to python3 in install-mod.py
Browse files Browse the repository at this point in the history
mctc-lib: inreplaces for install-mod.py
mstore: inreplaces for install-mod.py
multicharge: inreplaces for install-mod.py
s-dftd3: inreplaces for install-mod.py
toml-f: inreplaces for install-mod.py
toml-f: run only selected tests
  • Loading branch information
kjelljorner authored May 24, 2022
1 parent 3939523 commit b122412
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Formula/mctc-lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class MctcLib < Formula

def install
ENV.fortran
inreplace "config/install-mod.py", /python$/, "python3"
meson_args = std_meson_args
system "meson", "setup", "_build", *meson_args
system "meson", "compile", "-C", "_build"
Expand Down
1 change: 1 addition & 0 deletions Formula/mstore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Mstore < Formula

def install
ENV.fortran
inreplace "config/install-mod.py", /python$/, "python3"
meson_args = std_meson_args
system "meson", "setup", "_build", *meson_args
system "meson", "compile", "-C", "_build"
Expand Down
1 change: 1 addition & 0 deletions Formula/multicharge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Multicharge < Formula

def install
ENV.fortran
inreplace "config/install-mod.py", /python$/, "python3"
meson_args = std_meson_args
meson_args << "-Dlapack=openblas"
system "meson", "setup", "_build", *meson_args
Expand Down
1 change: 1 addition & 0 deletions Formula/s-dftd3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class SDftd3 < Formula

def install
ENV.fortran
inreplace "config/install-mod.py", /python$/, "python3"
meson_args = std_meson_args
meson_args << "-Dblas=custom"
meson_args << "-Dblas_libs=openblas"
Expand Down
4 changes: 3 additions & 1 deletion Formula/toml-f.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ class TomlF < Formula

def install
ENV.fortran
inreplace "config/install-mod.py", /python$/, "python3"
meson_args = std_meson_args
system "meson", "setup", "_build", *meson_args
system "meson", "compile", "-C", "_build"
system "meson", "test", "-C", "_build", "--no-rebuild", "--num-processes", "1"
selected_tests = ["version", "fpm", "tftest", "example-1.1", "example-2.2", "decoder"]
system "meson", "test", "-C", "_build", "--no-rebuild", "--num-processes", "1", *selected_tests
system "meson", "install", "-C", "_build", "--no-rebuild"
end

Expand Down

0 comments on commit b122412

Please sign in to comment.