File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ package(default_visibility = ["//visibility:public"])
90
90
exports_files(["defs.bzl"])
91
91
alias(name = "files", actual = "@{py_repository}_{host_platform}//:files")
92
92
alias(name = "includes", actual = "@{py_repository}_{host_platform}//:includes")
93
+ alias(name = "libpython", actual = "@{py_repository}_{host_platform}//:libpython")
93
94
alias(name = "py3_runtime", actual = "@{py_repository}_{host_platform}//:py3_runtime")
94
95
alias(name = "python_headers", actual = "@{py_repository}_{host_platform}//:python_headers")
95
96
alias(name = "python_runtimes", actual = "@{py_repository}_{host_platform}//:python_runtimes")
Original file line number Diff line number Diff line change @@ -148,6 +148,15 @@ cc_library(
148
148
],
149
149
)
150
150
151
+ cc_import(
152
+ name = "libpython",
153
+ hdrs = [":includes"],
154
+ shared_library = glob([
155
+ "lib/libpython*.so", # Linux and macOS
156
+ "python3.dll", # Windows
157
+ ])[0],
158
+ )
159
+
151
160
exports_files(["{python_path}"])
152
161
153
162
py_runtime(
You can’t perform that action at this time.
0 commit comments