-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathBUILD
More file actions
61 lines (54 loc) · 1.5 KB
/
BUILD
File metadata and controls
61 lines (54 loc) · 1.5 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
load("@rules_python//python:packaging.bzl", "py_wheel")
filegroup(
name="package_description",
srcs=["README.md"],
visibility = ["//visibility:public"],
)
filegroup(
name="package_data",
srcs=["LICENSE"],
visibility = ["//visibility:public"],
)
MANYLINUX_VERSION="manylinux_2_17_x86_64.manylinux2014_x86_64"
py_wheel(
name="tesseract_decoder_wheel",
distribution = "tesseract_decoder",
deps=[
"//src:tesseract_decoder",
"//src/py:generated_stubs",
"//src/py/_tesseract_py_util:_tesseract_py_util",
":package_data",
],
version = "$(VERSION)",
requires=[
"stim",
],
python_tag="$(TARGET_VERSION)",
platform= select({
":macos_arm": "macosx_11_0_arm64",
":macos_x86": "macosx_10_13_x86_64",
"@platforms//os:windows": "win32",
"@platforms//os:linux": MANYLINUX_VERSION,
}),
strip_path_prefixes = ["src/py", "src"],
description_file=":package_description",
description_content_type="text/markdown",
summary="A search-based decoder for quantum error correction (QEC).",
author="The Tesseract Decoder Authors.",
homepage="https://github.com/quantumlib/tesseract-decoder",
license="Apache 2",
)
config_setting(
name = "macos_arm",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
)
config_setting(
name = "macos_x86",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
],
)