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

gz-sim7: use python 3.13 #2857

Merged
merged 4 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion Formula/gz-launch6.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ class GzLaunch6 < Formula
url "https://osrf-distributions.s3.amazonaws.com/gz-launch/releases/gz-launch-6.1.0.tar.bz2"
sha256 "7c789c85ffb422ebbc4adb6f93c9b2aa7fdd7eccd521b7895297a6b8c525acc1"
license "Apache-2.0"
revision 33
revision 34

head "https://github.com/gazebosim/gz-launch.git", branch: "gz-launch6"

bottle do
root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation"
sha256 sonoma: "49350400df3254d59ef321b220e14378a3a3bd42619b0e788ee52df773f9e267"
sha256 ventura: "21c7e35f6b240e5bd62281511245fe4da876a8c358a82b588b3743ebd84594fd"
end

depends_on "cmake" => :build
depends_on "pkg-config" => :build

Expand Down
16 changes: 11 additions & 5 deletions Formula/gz-sim7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ class GzSim7 < Formula
url "https://osrf-distributions.s3.amazonaws.com/gz-sim/releases/gz-sim-7.9.0.tar.bz2"
sha256 "b8a506112d1287efce144b5a1264ab5754cacc436370fe2f1035b35cdd0d29a4"
license "Apache-2.0"
revision 6
revision 7

head "https://github.com/gazebosim/gz-sim.git", branch: "gz-sim7"

bottle do
root_url "https://osrf-distributions.s3.amazonaws.com/bottles-simulation"
sha256 sonoma: "99a76a7478f66f68dc328047af379dd545957d7426d588c7cdd788317478a408"
sha256 ventura: "154f23ac5d7f0c18dc7ca1f80add3bc683756421e41cfd79ac6116b80290bb25"
end

depends_on "cmake" => :build
depends_on "pybind11" => :build
depends_on "abseil"
Expand All @@ -30,14 +36,14 @@ class GzSim7 < Formula
depends_on macos: :mojave # c++17
depends_on "pkg-config"
depends_on "protobuf"
depends_on "python@3.12"
depends_on "python@3.13"
depends_on "qt@5"
depends_on "ruby"
depends_on "sdformat13"
depends_on "tinyxml2"

def python_cmake_arg
"-DPython3_EXECUTABLE=#{which("python3")}"
"-DPython3_EXECUTABLE=#{Formula["[email protected]"].opt_libexec}/bin/python}"
end

def install
Expand All @@ -57,7 +63,7 @@ def install
system "make", "install"
end

(lib/"python3.12/site-packages").install Dir[lib/"python/*"]
(lib/"python3.13/site-packages").install Dir[lib/"python/*"]
rmdir prefix/"lib/python"
end

Expand Down Expand Up @@ -148,6 +154,6 @@ def install
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["python@3.12"].opt_libexec/"bin/python", "-c", "import gz.sim7"
system Formula["python@3.13"].opt_libexec/"bin/python", "-c", "import gz.sim7"
end
end