forked from salesforce/rules_spring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
47 lines (41 loc) · 1.33 KB
/
BUILD
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
#
# Copyright (c) 2017-2021, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
#
# PYTHON PATH
#
# Simple utility to print out the python executable being used by Bazel.
# bazel run //tools/python_interpreter:check_python_path
py_binary(
name = "check_python_path",
srcs = [
"check_python_path.py",
],
)
#
# CAPTIVE PYTHON
#
# Install a specific version of python to be used by the Bazel build with the
# rule invocations below. This is disabled by default. To enable, follow these steps:
# 1. Create a subdirectory 'captive_python3' and install python3 into it. You should
# end up with ./captive_python3/bin/python3 existing on the filesystem.
# 2. Uncomment the rule invocations below.
# 3. Uncomment the python toolchain invocation in the WORKSPACE file.
#py_runtime(
# name = "python3",
# interpreter = "captive_python3/bin/python3",
# python_version = "PY3",
# visibility = ["//visibility:public"],
#)
#py_runtime_pair(
# name = "captive_python_runtimes",
# py3_runtime = ":python3",
#)
#toolchain(
# name = "captive_python_toolchain",
# toolchain = ":captive_python_runtimes",
# toolchain_type = "@bazel_tools//tools/python:toolchain_type",
#)