BUILD.cython 662 B

12345678910111213141516171819202122232425262728
  1. # Adapted from grpc/third_party/cython.BUILD
  2. # Adapted with modifications from tensorflow/third_party/cython.BUILD
  3. py_library(
  4. name="cython_lib",
  5. srcs=glob(
  6. ["Cython/**/*.py"],
  7. exclude=[
  8. "**/Tests/*.py",
  9. ],
  10. ) + ["cython.py"],
  11. data=glob([
  12. "Cython/**/*.pyx",
  13. "Cython/Utility/*.*",
  14. "Cython/Includes/**/*.pxd",
  15. ]),
  16. srcs_version="PY2AND3",
  17. visibility=["//visibility:public"],
  18. )
  19. # May not be named "cython", since that conflicts with Cython/ on OSX
  20. filegroup(
  21. name="cython_binary",
  22. srcs=["cython.py"],
  23. visibility=["//visibility:public"],
  24. data=["cython_lib"],
  25. )