Skip to content

Commit

Permalink
Install gz-transport13 python bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Aug 25, 2023
1 parent 1a63efb commit 1676654
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/gz-transport13.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 1676654

Please sign in to comment.