-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
52 lines (40 loc) · 1.6 KB
/
WORKSPACE
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
workspace(name = "bug-example")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "e85ae30de33625a63eca7fc40a94fea845e641888e52f32b6beea91e8b1b2793",
strip_prefix = "rules_python-0.27.1",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.27.1/rules_python-0.27.1.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python_3_11",
# Available versions are listed in @rules_python//python:versions.bzl.
# We recommend using the same version your team is already standardized on.
python_version = "3.11",
)
load("@python_3_11//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse")
PIP_ANNOTATIONS = {
"PyQt6": package_annotation(
additive_build_content = """# A comment.""",
copy_files = {
"@pip_pyqt6_sip//:site-packages/PyQt6/sip.cpython-311-x86_64-linux-gnu.so": "site-packages/PyQt6/sip.cpython-311-x86_64-linux-gnu.so",
},
),
"wheel": package_annotation(
additive_build_content = """# A comment.""",
),
}
pip_parse(
name = "pip",
annotations = PIP_ANNOTATIONS,
python_interpreter_target = interpreter,
requirements_darwin = "//:requirements_darwin.txt",
requirements_windows = "//:requirements_windows.txt",
requirements_linux = "//:requirements_linux.txt",
)
load("@pip//:requirements.bzl", "install_deps")
install_deps()