mirror of
https://github.com/tensorflow/tensorflow.git
synced 2024-11-21 21:05:19 +00:00
985ad0276a
PiperOrigin-RevId: 352907145 Change-Id: I82de30d92dc9c2b53215d6d5732c67afe339c23d
29 lines
656 B
Plaintext
29 lines
656 B
Plaintext
# 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 = "PY3",
|
|
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 = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
deps = ["cython_lib"],
|
|
)
|