cython.BUILD 667 B

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