forked from cython/cython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
35 lines (32 loc) · 860 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Bazel build file for inclusion as external dependency.
#
# Most useful is the pyx_library rule from //Tools:rules.bzl
# which mirrors py_library but compiles .pyx files.
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
py_library(
name = "cython_lib",
srcs = glob(
["Cython/**/*.py"],
exclude = [
"**/Tests/*.py",
],
) + ["cython.py"],
data = glob([
"Cython/**/*.pyx",
"Cython/Utility/*.*",
"Cython/Includes/**/*.pxd",
]),
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",
visibility = ["//visibility:public"],
deps = ["cython_lib"],
)
alias(
name = "cython",
actual = ":cython_binary",
)