Skip to content

Commit

Permalink
blockhash: use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Feb 19, 2022
1 parent 20e1970 commit ccdcc0a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Formula/blockhash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ class Blockhash < Formula
end

def install
ENV.prepend_path "PATH", Formula["[email protected]"].opt_bin

system "./waf", "configure", "--prefix=#{prefix}"
system "python3", "./waf", "configure", "--prefix=#{prefix}"
# pkg-config adds -fopenmp flag during configuring
# This fails the build on system clang, and OpenMP is not used in blockhash
inreplace "build/c4che/_cache.py", "-fopenmp", ""
system "./waf"
system "./waf", "install"
system "python3", "./waf"
system "python3", "./waf", "install"
end

test do
Expand Down

0 comments on commit ccdcc0a

Please sign in to comment.