aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/py_native/BUILD
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-03-27 14:08:38 +0000
committerGravatar Ulf Adams <ulfjack@google.com>2015-03-30 12:17:41 +0000
commitf5e23c61ad53f209bea51607cd598062453c0b8a (patch)
treed4751aeca79d96e72b6163c0d5528f13427d783c /examples/py_native/BUILD
parentb50215e23100a3030d4e5a3eeeca9e74e65e1757 (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 'examples/py_native/BUILD')
-rw-r--r--examples/py_native/BUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/py_native/BUILD b/examples/py_native/BUILD
new file mode 100644
index 0000000000..3d8de94251
--- /dev/null
+++ b/examples/py_native/BUILD
@@ -0,0 +1,10 @@
+py_binary(
+ name = "bin",
+ srcs = ["bin.py"],
+ deps = [":lib"],
+)
+
+py_library(
+ name = "lib",
+ srcs = ["lib.py"],
+)