kse-01/tensorflow/third_party/cython.BUILD
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

28 lines
664 B (Stored with Git LFS)
Text

# Modified version of @cython//:BUILD.bazel
py_library(
name = "cython_lib",
srcs = glob(
["Cython/**/*.py"],
exclude = [
"**/Tests/*.py",
],
) + ["cython.py"],
data = glob([
"Cython/**/*.pyx",
"Cython/Utility/*.*",
"Cython/Includes/**/*.pxd",
]),
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)
# May not be named "cython", since that conflicts with Cython/ on OSX
py_binary(
name = "cython_binary",
srcs = ["cython.py"],
main = "cython.py",
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
deps = ["cython_lib"],
)