Skip to content

Commit

Permalink
filebeat: migrate to python@3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Oct 13, 2020
1 parent 2e62002 commit 9701a0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Formula/filebeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Filebeat < Formula
# Outside of the "x-pack" folder, source code in a given file is licensed
# under the Apache License Version 2.0
license "Apache-2.0"
revision 1
head "https://github.com/elastic/beats.git"

bottle do
Expand All @@ -17,7 +18,8 @@ class Filebeat < Formula
end

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

uses_from_macos "rsync" => :build

Expand All @@ -43,8 +45,11 @@ def install
xy = Language::Python.major_minor_version "python3"
ENV.prepend_create_path "PYTHONPATH", buildpath/"vendor/lib/python#{xy}/site-packages"

# Help Pillow find zlib
ENV.append_to_cflags "-I#{MacOS.sdk_path}/usr/include"

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

0 comments on commit 9701a0f

Please sign in to comment.