Skip to content

Commit

Permalink
python@3.11: switch to openssl@3
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocab committed Jun 20, 2023
1 parent 18066a8 commit 2181b33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Formula/python@3.11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class PythonAT311 < Formula
url "https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tgz"
sha256 "85c37a265e5c9dd9f75b35f954e31fbfc10383162417285e30ad25cc073a0d63"
license "Python-2.0"
revision 1

livecheck do
url "https://www.python.org/ftp/python/"
Expand All @@ -27,7 +28,7 @@ class PythonAT311 < Formula

depends_on "pkg-config" => :build
depends_on "mpdecimal"
depends_on "openssl@1.1"
depends_on "openssl@3"
depends_on "sqlite"
depends_on "xz"

Expand Down Expand Up @@ -149,7 +150,7 @@ def install
--datadir=#{share}
--without-ensurepip
--enable-loadable-sqlite-extensions
--with-openssl=#{Formula["openssl@1.1"].opt_prefix}
--with-openssl=#{Formula["openssl@3"].opt_prefix}
--enable-optimizations
--with-system-expat
--with-system-libmpdec
Expand Down Expand Up @@ -215,7 +216,7 @@ def install
# `brew install enchant && pip install pyenchant`
inreplace "./Lib/ctypes/macholib/dyld.py" do |f|
f.gsub! "DEFAULT_LIBRARY_FALLBACK = [",
"DEFAULT_LIBRARY_FALLBACK = [ '#{HOMEBREW_PREFIX}/lib', '#{Formula["openssl@1.1"].opt_lib}',"
"DEFAULT_LIBRARY_FALLBACK = [ '#{HOMEBREW_PREFIX}/lib', '#{Formula["openssl@3"].opt_lib}',"
f.gsub! "DEFAULT_FRAMEWORK_FALLBACK = [", "DEFAULT_FRAMEWORK_FALLBACK = [ '#{HOMEBREW_PREFIX}/Frameworks',"
end

Expand Down

0 comments on commit 2181b33

Please sign in to comment.