diff options
author | Lukacs Berki <lberki@google.com> | 2015-03-27 14:08:38 +0000 |
---|---|---|
committer | Ulf Adams <ulfjack@google.com> | 2015-03-30 12:17:41 +0000 |
commit | f5e23c61ad53f209bea51607cd598062453c0b8a (patch) | |
tree | d4751aeca79d96e72b6163c0d5528f13427d783c /tools/python | |
parent | b50215e23100a3030d4e5a3eeeca9e74e65e1757 (diff) |
Make Python rules in Bazel actually work.
In particular: add a BazelPythonSemantics implementation and the respective RuleConfiguredTarget factories, rule class definitions and hook them up with BazelRuleClassProvider. Add implicit dependencies (2to3 is just a stub script for now that always fails) and a tiny exampe.
--
MOS_MIGRATED_REVID=89691827
Diffstat (limited to 'tools/python')
-rwxr-xr-x | tools/python/2to3.sh | 3 | ||||
-rw-r--r-- | tools/python/BUILD | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/python/2to3.sh b/tools/python/2to3.sh new file mode 100755 index 0000000000..d87f29eecf --- /dev/null +++ b/tools/python/2to3.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exit 1 diff --git a/tools/python/BUILD b/tools/python/BUILD new file mode 100644 index 0000000000..f489fe1d94 --- /dev/null +++ b/tools/python/BUILD @@ -0,0 +1,6 @@ +package(default_visibility = ["//visibility:public"]) + +sh_binary( + name = "2to3", + srcs = ["2to3.sh"], +) |