-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gz-msgs10: install python bindings (#2345)
Signed-off-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Steve Peters <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |