-
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.
Install gz-transport13 python bindings
Signed-off-by: Addisu Z. Taddese <[email protected]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ class GzTransport13 < Formula | |
depends_on "ossp-uuid" | ||
depends_on "pkg-config" | ||
depends_on "protobuf" | ||
depends_on "[email protected]" | ||
depends_on "zeromq" | ||
|
||
def install | ||
|
@@ -31,6 +32,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 | ||
|
@@ -66,5 +70,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.transport13" | ||
end | ||
end |