Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heartbeat: migrate to python@3.9 #62325

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions Formula/heartbeat.rb
Expand Up @@ -5,6 +5,7 @@ class Heartbeat < Formula
tag: "v7.9.2",
revision: "2ab907f5ccecf9fd82fe37105082e89fd871f684"
license "Apache-2.0"
revision 1
head "https://github.com/elastic/beats.git"

bottle do
Expand All @@ -15,7 +16,7 @@ class Heartbeat < Formula
end

depends_on "go" => :build
depends_on "python@3.8" => :build
depends_on "python@3.9" => :build

resource "virtualenv" do
url "https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/virtualenv-15.2.0.tar.gz"
Expand All @@ -40,7 +41,7 @@ def install
ENV.prepend_create_path "PYTHONPATH", buildpath/"vendor/lib/python#{xy}/site-packages"

resource("virtualenv").stage do
system Formula["python@3.8"].opt_bin/"python3", *Language::Python.setup_install_args(buildpath/"vendor")
system Formula["python@3.9"].opt_bin/"python3", *Language::Python.setup_install_args(buildpath/"vendor")
end

ENV.prepend_path "PATH", buildpath/"vendor/bin" # for virtualenv
Expand Down