Skip to content

Commit

Permalink
[email protected]_py310: rebottle for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed May 5, 2024
1 parent 1f456b8 commit 89ee863
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Formula/[email protected]_py310.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class Shiboken2AT51511Py310 < Formula
uses_from_macos "libxml2"
uses_from_macos "libxslt"

def python3
"python3.10"
end

def install

Check failure on line 30 in Formula/[email protected]_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew install --verbose --build-bottle freecad/freecad/[email protected]_py310` failed on macOS Sonoma (14) on Apple Silicon!

==> Fetching freecad/freecad/[email protected]_py310 ==> Downloading https://download.qt.io/official_releases/QtForPython/shiboken2/PySide2-5.15.11-src/pyside-setup-opensource-src-5.15.11.zip Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/37d807d5657aec5748ff37811a1c72407c9d6bea7acc1e9f5b1fdd2d0cae6396--pyside-setup-opensource-src-5.15.11.zip ==> Verifying checksum for '37d807d5657aec5748ff37811a1c72407c9d6bea7acc1e9f5b1fdd2d0cae6396--pyside-setup-opensource-src-5.15.11.zip' ==> Installing [email protected]_py310 from freecad/freecad /usr/bin/env PATH=/opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/llvm@15/bin:/opt/homebrew/opt/gcc/bin:/opt/homebrew/opt/numpy/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/pcre2/bin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/jpeg-turbo/bin:/opt/homebrew/opt/giflib/bin:/opt/homebrew/opt/libtiff/bin:/opt/homebrew/opt/webp/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/sphinx-doc/bin:/opt/homebrew/opt/[email protected]/libexec/bin:/opt/homebrew/opt/[email protected]/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin unzip -o /Users/runner/Library/Caches/Homebrew/downloads/37d807d5657aec5748ff37811a1c72407c9d6bea7acc1e9f5b1fdd2d0cae6396--pyside-setup-opensource-src-5.15.11.zip -d /private/tmp/homebrew-unpack20240505-12049-22u65z /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240505-12049-22u65z/pyside-setup-opensource-src-5.15.11/. /private/tmp/shiboken2A5.15.11_py310-20240505-12049-rfpezg/pyside-setup-opensource-src-5.15.11 Error: An exception occurred within a child process: NameError: undefined local variable or method `python3' for #<Formula [email protected]_py310 (stable) /opt/homebrew/Library/Taps/freecad/homebrew-freecad/Formula/[email protected]_py310.rb>
rpaths = if OS.mac?
shiboken2_module = prefix/Language::Python.site_packages(python3)/"shiboken2"
Expand All @@ -43,14 +39,20 @@ def install
cmake_args = std_cmake_args

# NOTE: ipatch, build will fail if using `python3` cmake requires major+minor ie. `python3.10`
python_executable = Formula["[email protected]"].opt_bin/"python3.10"
python_lib = Formula["[email protected]"].opt_lib/"libpython3.10.dylib"
py_exe = Formula["[email protected]"].opt_bin/"python3.10"

py_lib = if OS.mac?
Formula["[email protected]"].opt_lib/"libpython3.10.dylib"
else
Formula["[email protected]"].opt_lib/"libpython3.10.so"
end

cmake_args << "-DPYTHON_EXECUTABLE=#{py_exe}"
cmake_args << "-DPYTHON_LIBRARY=#{py_lib}"

cmake_args << "-DPYTHON_EXECUTABLE=#{python_executable}"
cmake_args << "-DPYTHON_LIBRARY=#{python_lib}"
cmake_args << "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}" if OS.mac?

system "cmake", "-S", "./sources/shiboken2", "-B", "build",
"-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
"-DFORCE_LIMITED_API=no",
"-DLLVM_CONFIG=#{Formula["llvm@15"].opt_bin}/llvm-config",
"-DCMAKE_LIBRARY_PATH=#{Formula["llvm@15"].opt_lib}",
Expand Down

0 comments on commit 89ee863

Please sign in to comment.