Skip to content

Commit

Permalink
heartbeat: remove python
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Dec 16, 2024
1 parent ad50f64 commit 0074f54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Formula/h/heartbeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Heartbeat < Formula

depends_on "go" => :build
depends_on "mage" => :build
depends_on "[email protected]" => :build

uses_from_macos "netcat" => :test

Expand All @@ -27,13 +26,11 @@ def install
rm_r("x-pack")

cd "heartbeat" do
# prevent downloading binary wheels during python setup
system "make", "PIP_INSTALL_PARAMS=--no-binary :all", "python-env"
system "mage", "-v", "build"
ENV.deparallelize
system "mage", "-v", "update"

(etc/"heartbeat").install Dir["heartbeat.*", "fields.yml"]
pkgetc.install Dir["heartbeat.*", "fields.yml"]
(libexec/"bin").install "heartbeat"
end

Expand All @@ -47,8 +44,7 @@ def install
"$@"
EOS

chmod 0555, bin/"heartbeat" # generate_completions_from_executable fails otherwise
generate_completions_from_executable(bin/"heartbeat", "completion", shells: [:bash, :zsh])
generate_completions_from_executable(libexec/"bin/heartbeat", "completion", shells: [:bash, :zsh])
end

def post_install
Expand Down

0 comments on commit 0074f54

Please sign in to comment.