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

Conversation

fxcoudert
Copy link
Member

As part of the Python 3.9 migration (#62201).

This formula is independent from the all other Python formulas (if I didn't screw up my script or my logic)

Do not merge before the next Brew tag ships, expected on Monday 2020-10-12

@BrewTestBot BrewTestBot added go Go use is a significant feature of the PR or issue python Python use is a significant feature of the PR or issue and removed do not merge labels Oct 7, 2020
@fxcoudert
Copy link
Member Author

    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.

@yous
Copy link
Contributor

yous commented Oct 15, 2020

Similar to #62243 (comment):

diff --git a/Formula/heartbeat.rb b/Formula/heartbeat.rb
index bd813a0249..19ef579613 100644
--- a/Formula/heartbeat.rb
+++ b/Formula/heartbeat.rb
@@ -16,7 +16,9 @@ class Heartbeat < Formula
   end
 
   depends_on "go" => :build
+  depends_on "jpeg" => :build
   depends_on "python@3.9" => :build
+  depends_on "zlib" => :build
 
   resource "virtualenv" do
     url "https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/virtualenv-15.2.0.tar.gz"
@@ -50,7 +52,7 @@ class Heartbeat < Formula
     cd "src/github.com/elastic/beats/heartbeat" do
       system "make", "mage"
       # prevent downloading binary wheels during python setup
-      system "make", "PIP_INSTALL_PARAMS=--no-binary :all", "python-env"
+      system "make", "PIP_INSTALL_PARAMS=--use-pep517 --no-binary :all:", "python-env"
       system "mage", "-v", "build"
       ENV.deparallelize
       system "mage", "-v", "update"

@fxcoudert
Copy link
Member Author

  • There is a system zlib, which it should find
  • Why do we need jpeg at build-time only? That's unusual

@yous
Copy link
Contributor

yous commented Oct 15, 2020

@yous
Copy link
Contributor

yous commented Oct 15, 2020

I saw python-pillow/Pillow#4974, and it's available from Pillow 8.0.0, but beats 7.9.2 specifies Pillow 7.0.0: https://github.com/elastic/beats/blob/v7.9.2/libbeat/tests/system/requirements.txt

Also, Pillow would be removed from beats 7.10.0: elastic/beats#20407

@fxcoudert
Copy link
Member Author

It says it doesn't actually use Pillow, it's just… there for no reason?

@fxcoudert
Copy link
Member Author

Superseded by #63381

@fxcoudert fxcoudert closed this Oct 23, 2020
@fxcoudert fxcoudert deleted the py39_heartbeat branch October 23, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Go use is a significant feature of the PR or issue python Python use is a significant feature of the PR or issue python-3.9-migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants