diff options
author | Nathaniel Manista <nathaniel@google.com> | 2018-07-30 12:17:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 12:17:07 -0700 |
commit | a87b1fb3ef9859528f93d7792afaa121453d91c9 (patch) | |
tree | cb9e1add869b91781a1a7a1b46cfef943d7bb110 /third_party/cython.BUILD | |
parent | 48d05520ac899c10cdbaffe0210adf7657d2b162 (diff) | |
parent | 11f199e34dc416a2bd8b56391b242a867bedade4 (diff) |
Merge pull request #15992 from ghostwriternr/python_bazel_1
Basic setup to build gRPC Python with Bazel.
Diffstat (limited to 'third_party/cython.BUILD')
-rw-r--r-- | third_party/cython.BUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/cython.BUILD b/third_party/cython.BUILD new file mode 100644 index 0000000000..ce9283e2a4 --- /dev/null +++ b/third_party/cython.BUILD @@ -0,0 +1,29 @@ +# 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 +py_binary( + name="cython_binary", + srcs=["cython.py"], + main="cython.py", + srcs_version="PY2AND3", + visibility=["//visibility:public"], + deps=["cython_lib"], +) + |