commit | 9160fc7367be8db56ae90c581bd0ceebda969e24 | [log] [tgz] |
---|---|---|
author | Matt Moore <mattmoor@google.com> | Fri Aug 11 10:06:19 2017 -0700 |
committer | Matt Moore <mattmoor@google.com> | Fri Aug 11 10:06:19 2017 -0700 |
tree | 3997d0bf2b5c3f41b395eb62fcc89b5042222907 |
Create the initial repository shell for housing Python tooling for Bazel.
This is a placeholder repository that provides aliases for the native Bazel python rules. In the future, this will also become the home for rules that download pip
packages, and other non-Core Python functionality.
Add the following to your WORKSPACE
file to add the external repositories:
git_repository( name = "io_bazel_rules_python", remote = "https://github.com/bazelbuild/rules_python.git", commit = "{HEAD}", )
Then in your BUILD
files load the python rules with:
load( "@io_bazel_rules_python//python:python.bzl", "py_binary", "py_library" ) py_binary( name = "main", ... )
See Bazel core documentation.
See Bazel core documentation.