Skip to content

Commit

Permalink
gz-msgs10: install python bindings (#2345)
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
  • Loading branch information
azeey and scpeters authored Aug 28, 2023
1 parent bd43659 commit 62c09b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Formula/gz-msgs10.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class GzMsgs10 < Formula
desc "Middleware protobuf messages for robotics"
homepage "https://gazebosim.org"
url "https://github.com/gazebosim/gz-msgs.git", branch: "main"
version "9.999.999~0~20230125"
version "9.999.999~0~20230828"
license "Apache-2.0"

depends_on "cmake"
Expand All @@ -12,6 +12,7 @@ class GzMsgs10 < Formula
depends_on macos: :high_sierra # c++17
depends_on "pkg-config"
depends_on "protobuf"
depends_on "[email protected]"
depends_on "tinyxml2"

def install
Expand All @@ -23,6 +24,9 @@ def install
system "cmake", "..", *cmake_args
system "make", "install"
end

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

test do
Expand Down Expand Up @@ -58,5 +62,7 @@ def install
# check for Xcode frameworks in bottle
cmd_not_grep_xcode = "! grep -rnI 'Applications[/]Xcode' #{prefix}"
system cmd_not_grep_xcode
# check python import
system Formula["[email protected]"].opt_bin/"python3.11", "-c", "import gz.msgs10"
end
end

0 comments on commit 62c09b1

Please sign in to comment.