2019-01-25 00:57:31 -08:00
|
|
|
# Adapted from grpc/third_party/cython.BUILD
|
|
|
|
|
|
|
|
# Adapted with modifications from tensorflow/third_party/cython.BUILD
|
|
|
|
|
|
|
|
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
|
2019-03-12 12:21:55 -07:00
|
|
|
filegroup(
|
2019-01-25 00:57:31 -08:00
|
|
|
name="cython_binary",
|
|
|
|
srcs=["cython.py"],
|
|
|
|
visibility=["//visibility:public"],
|
2019-03-12 12:21:55 -07:00
|
|
|
data=["cython_lib"],
|
2019-01-25 00:57:31 -08:00
|
|
|
)
|