forked from sammy-tri/optitrack-driver
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wheel] Add rules to create a platform-independent wheel (#16)
Upgrade rules_python to 0.24.0. Remove spurous liblcm dependency from lcm-gen.
- Loading branch information
1 parent
f9dab23
commit 8ade24c
Showing
7 changed files
with
115 additions
and
35 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
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
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
VERSION = "0.0.20230714" |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -*- python -*- | ||
# This file contains rules for the Bazel build system; see https://bazel.build. | ||
|
||
load("//:version.bzl", "VERSION") | ||
load("@rules_python//python:packaging.bzl", "py_wheel") | ||
|
||
licenses(["notice"]) | ||
|
||
package(default_visibility = ["//visibility:private"]) | ||
|
||
genrule( | ||
name = "_cp_client", | ||
srcs = ["//src:optitrack_client.py"], | ||
outs = ["optitrack/client.py"], | ||
cmd = "cp $< $@", | ||
) | ||
|
||
py_library( | ||
name = "client", | ||
srcs = [":optitrack/client.py"], | ||
) | ||
|
||
py_wheel( | ||
name = "wheel", | ||
visibility = ["//visibility:public"], | ||
distribution = "optitrack_driver", | ||
version = VERSION, | ||
summary = "Translates data streamed from the Optitrack Motive software into LCM messages.", | ||
requires = [ | ||
"lcm", | ||
], | ||
entry_points = { | ||
"console_scripts": [ | ||
"optitrack_client = optitrack.client:main", | ||
], | ||
}, | ||
deps = [ | ||
":client", | ||
"//lcmtypes:cxx_srcs", | ||
"//lcmtypes:java_srcs", | ||
"//lcmtypes:lcm_srcs_with_subdir", | ||
"//lcmtypes:py_optitrack_lcmtypes", | ||
], | ||
strip_path_prefixes = [ | ||
"lcmtypes/", | ||
"wheel/", | ||
], | ||
) |