-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathWORKSPACE
60 lines (49 loc) · 1.97 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
53
54
55
56
57
58
59
60
workspace(name = "alphastar")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz",
sha256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea",
)
load("@rules_python//python:pip.bzl", "pip_install")
# Create a central external repo, @my_deps, that contains Bazel targets for all the
# third-party packages specified in the requirements.txt file.
pip_install(
name = "my_deps",
requirements = "@//bazel:requirements.txt",
)
# Needed to define .bzl libs.
http_archive(
name = "bazel_skylib",
strip_prefix = "bazel-skylib-main",
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/main.zip"],
)
git_repository(
name = "pysc2_archive",
remote = "https://github.com/deepmind/pysc2.git",
commit = "574744a5a983d227f2626c3ab487705148e4cbaf",
shallow_since = "1657713076 +0100"
)
# Note: if you wish to use a local repository for PySC2 rather than fetching the
# sources from GitHub (e.g. because you have made local modifications), please
# comment out the section above and uncomment the section below, substituting
# the real path to the local repository. See here for further information:
# https://docs.bazel.build/versions/main/be/workspace.html#local_repository
#
# local_repository(
# name = "pysc2_archive",
# path = "/some/path/to/starcraft2", # Replace with the real repo path
# )
load("@pysc2_archive//bazel:create_external_repos.bzl", "pysc2_create_external_repos")
pysc2_create_external_repos(pysc2_repo_name = "pysc2_archive")
load("@pysc2_archive//bazel:setup_external_repos.bzl", "pysc2_setup_external_repos")
pysc2_setup_external_repos()
bind(
name = "python_headers",
actual = "@local_config_python//:python_headers",
)
bind(
name = "six",
actual = "@six_archive//:six",
)