1# Adapted with modifications from tensorflow/third_party/cython.BUILD 2 3py_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 20# May not be named "cython", since that conflicts with Cython/ on OSX 21py_binary( 22 name="cython_binary", 23 srcs=["cython.py"], 24 main="cython.py", 25 srcs_version="PY2AND3", 26 visibility=["//visibility:public"], 27 deps=["cython_lib"], 28) 29 30