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

ansible@2.8 Revert back to python 3.7 #56148

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Formula/ansible@2.8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class AnsibleAT28 < Formula
homepage "https://www.ansible.com/"
url "https://releases.ansible.com/ansible/ansible-2.8.12.tar.gz"
sha256 "2a4ce2a3f387d2595ee3f968c3ea50d6db0ab2d8306f0e81ab96c2a15a683124"
revision 1

bottle do
cellar :any
Expand All @@ -18,7 +19,9 @@ class AnsibleAT28 < Formula
depends_on "pkg-config" => :build
depends_on "libyaml"
depends_on "openssl@1.1"
depends_on "python@3.8"
depends_on "python"
# Ansible 2.8 would probably never work with Python > 3.7
# https://github.com/ansible/ansible/issues/63973

uses_from_macos "libffi"
uses_from_macos "libxslt"
Expand Down Expand Up @@ -593,7 +596,7 @@ class AnsibleAT28 < Formula
end

def install
ENV.prepend_path "PATH", Formula["python@3.8"].opt_libexec/"bin"
ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"

# Fix "ld: file not found: /usr/lib/system/libsystem_darwin.dylib" for lxml
ENV["SDKROOT"] = MacOS.sdk_path if MacOS.version == :sierra
Expand Down