# BUILD文件
load("@rules_python//python:defs.bzl", "py_binary") # 把从python规则中导入py_binary函数
package(default_visibility = ["//visibility:public"]) # 模块可见性,
py_binary(
name = "my_prediction_py", #目标名,与主函数所在文件同名
# main = "trajectory_prediction.py", # 指定文件,否则会去srcs里面寻找与name同名的py
srcs = [
"trajectory_prediction.py",
],
deps = [
"//cyber/python/cyber_py3:cyber" #对cyber框架的依赖
],
)
【Apollo】bazel中的python规则
最新推荐文章于 2024-08-23 16:53:34 发布