Skip to content

Commit

Permalink
shiboken: update formula to use py311
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed Nov 29, 2023
1 parent 1d28919 commit 7e99de0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Formula/shiboken2@5.15.11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Shiboken2AT51511 < Formula
keg_only :versioned_formula

depends_on "cmake" => :build
depends_on "python@3.10" => :build
depends_on "python@3.11" => :build
depends_on "llvm"
depends_on "numpy"
depends_on "qt@5"
Expand All @@ -31,7 +31,7 @@ class Shiboken2AT51511 < Formula
uses_from_macos "libxslt"

def python3
"python3.10"
"python3.11"
end

def install
Expand All @@ -42,17 +42,15 @@ def install
# "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
system "cmake", "-S", "./sources/shiboken2", "-B", "build",
"-DPYTHON_EXECUTABLE=#{which(python3)}",
"-DFORCE_LIMITED_API=yes",
"-DFORCE_LIMITED_API=no",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

def caveats
<<-EOS
this formula is keg-only, and is tied to the version of python
that is used to build qt@5, ie. if qt@5 uses python@3.10 then
this formula must use python@3.10
this formula is keg-only
EOS
end

Expand Down

0 comments on commit 7e99de0

Please sign in to comment.