summaryrefslogtreecommitdiff
path: root/patches/python-ray.patch
blob: c66226bb3742d6054e32a665a28221aa0ec195be (plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -10,6 +10,69 @@
     ],
 )
 
+new_local_repository(
+    name = "openssl",
+    path = "@GUIX_OPENSSL@",
+    build_file_content = """
+cc_library(
+    name = "openssl",
+    includes = ["include"],
+    linkopts = ["-lssl", "-lcrypto"],
+    visibility = ["//visibility:public"],
+)
+""",
+)
+new_local_repository(
+    name = "jemalloc",
+    path = "@GUIX_JEMALLOC@",
+    build_file_content = """
+cc_library(
+    name = "libjemalloc",
+    includes = ["include"],
+    linkopts = ["-ljemalloc", "-ldl"],
+    visibility = ["//visibility:public"],
+)
+filegroup(
+    name = "shared",
+    srcs = [],
+    visibility = ["//visibility:public"],
+)
+""",
+)
+
+new_local_repository(
+    name = "com_github_antirez_redis",
+    path = "@GUIX_REDIS@",
+    build_file_content = """
+filegroup(
+    name = "redis-server",
+    srcs = ["bin/redis-server"],
+    visibility = ["//visibility:public"],
+)
+filegroup(
+    name = "redis-cli",
+    srcs = ["bin/redis-cli"],
+    visibility = ["//visibility:public"],
+)
+""",
+)
+new_local_repository(
+    name = "com_github_redis_hiredis",
+    path = "@GUIX_HIREDIS@",
+    build_file_content = """
+cc_library(
+    name = "hiredis",
+    includes = ["include"],
+    linkopts = ["-lhiredis", "-lhiredis_ssl"],
+    visibility = ["//visibility:public"],
+)
+""",
+)
+
+
+
+
+
 load("//bazel:ray_deps_setup.bzl", "ray_deps_setup")
 
 ray_deps_setup()
@@ -47,6 +110,7 @@
 )
 
 load("@rules_python//python:repositories.bzl", "python_register_toolchains")
+load("@rules_python//python:repositories.bzl", "py_repositories")
 
 python_register_toolchains(
     name = "python3_9",
@@ -54,24 +118,7 @@
     register_toolchains = False,
 )
 
-load("@python3_9//:defs.bzl", python39 = "interpreter")
-load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies")
-
-pip_install_dependencies()
-
-load("@rules_python//python:pip.bzl", "pip_parse")
-
-pip_parse(
-    name = "py_deps_buildkite",
-    python_interpreter_target = python39,
-    requirements_lock = "//release:requirements_buildkite.txt",
-)
-
-load("@py_deps_buildkite//:requirements.bzl", install_py_deps_buildkite = "install_deps")
-
-install_py_deps_buildkite()
-
-register_toolchains("//:python_toolchain")
+register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")
 
 register_execution_platforms(
     "@local_config_platform//:host",