Skip to content

Commit

Permalink
Remove unnecessary python skylark rules and update example
Browse files Browse the repository at this point in the history
* We already have native python rules, so the skylark
ones are no longer unnecessary now
* Leaving `load skylark rules` statement in the example
may be misleading for newcomers

Testing done:
* re-compile bazel
* use it to build example folder and run py target

``` shell
./compile.sh compile /usr/bin/bazel
/home/yiyu/opt/bazel/output/bazel build //examples:all
/home/yiyu/opt/bazel/output/bazel run //examples/py:bin
```

--
Change-Id: Icd82afff2b74e77c0bcc80687b04225baf28f6ad
Reviewed-on: https://cr.bazel.build/9070
PiperOrigin-RevId: 148646895
MOS_MIGRATED_REVID=148646895
  • Loading branch information
erain authored and hermione521 committed Feb 28, 2017
1 parent ccbcf8e commit 4229823
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 123 deletions.
2 changes: 0 additions & 2 deletions examples/py/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package(default_visibility = ["//visibility:public"])

load("//tools/build_rules:py_rules.bzl", "py_library", "py_binary")

py_library(
name = "lib",
srcs = ["lib.py"],
Expand Down
121 changes: 0 additions & 121 deletions tools/build_rules/py_rules.bzl

This file was deleted.

0 comments on commit 4229823

Please sign in to comment.