Skip to content

Commit b850b75

Browse files
committed
shiboken: update formula to use py311
1 parent 1d28919 commit b850b75

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Formula/[email protected]

+11-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Shiboken2AT51511 < Formula
22
desc "GeneratorRunner plugin that outputs C++ code for CPython extensions"
33
homepage "https://code.qt.io/cgit/pyside/pyside-setup.git/tree/README.shiboken2-generator.md?h=5.15.2"
44
license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
5-
revision 2
5+
revision 3
66
head "https://github.com/qt/qt5.git", branch: "dev", shallow: false
77

88
stable do
@@ -22,7 +22,7 @@ class Shiboken2AT51511 < Formula
2222
keg_only :versioned_formula
2323

2424
depends_on "cmake" => :build
25-
depends_on "python@3.10" => :build
25+
depends_on "python@3.11" => :build
2626
depends_on "llvm"
2727
depends_on "numpy"
2828
depends_on "qt@5"
@@ -31,28 +31,32 @@ class Shiboken2AT51511 < Formula
3131
uses_from_macos "libxslt"
3232

3333
def python3
34-
"python3.10"
34+
"python3.11"
3535
end
3636

3737
def install
38+
rpaths = if OS.mac?
39+
shiboken2_module = prefix/Language::Python.site_packages(python3)/"shiboken2"
40+
[rpath, rpath(source: shiboken2_module)]
41+
end
42+
3843
ENV["LLVM_INSTALL_DIR"] = Formula["llvm"].opt_prefix
3944

4045
ENV.append_path "CMAKE_PREFIX_PATH", Formula["qt@5"].opt_lib
4146

4247
# "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
4348
system "cmake", "-S", "./sources/shiboken2", "-B", "build",
4449
"-DPYTHON_EXECUTABLE=#{which(python3)}",
45-
"-DFORCE_LIMITED_API=yes",
50+
"-DFORCE_LIMITED_API=no",
51+
"-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
4652
*std_cmake_args
4753
system "cmake", "--build", "build"
4854
system "cmake", "--install", "build"
4955
end
5056

5157
def caveats
5258
<<-EOS
53-
this formula is keg-only, and is tied to the version of python
54-
that is used to build qt@5, ie. if qt@5 uses [email protected] then
55-
this formula must use [email protected]
59+
this formula is keg-only
5660
EOS
5761
end
5862

0 commit comments

Comments
 (0)