Fixed buildifier defects (#621)
diff --git a/python/pip_install/pip_repository.bzl b/python/pip_install/pip_repository.bzl
index 7166d25..51d4fb5 100644
--- a/python/pip_install/pip_repository.bzl
+++ b/python/pip_install/pip_repository.bzl
@@ -133,8 +133,6 @@
annotations_file = rctx.path("annotations.json")
rctx.file(annotations_file, json.encode_indent(annotations, indent = " " * 4))
- pypath = _construct_pypath(rctx)
-
if rctx.attr.incremental:
args = [
python_interpreter,
@@ -339,8 +337,6 @@
def _whl_library_impl(rctx):
python_interpreter = _resolve_python_interpreter(rctx)
- # pointer to parent repo so these rules rerun if the definitions in requirements.bzl change.
- _parent_repo_label = Label("@{parent}//:requirements.bzl".format(parent = rctx.attr.repo))
args = [
python_interpreter,
"-m",
diff --git a/tools/bazel_integration_test/bazel_integration_test.bzl b/tools/bazel_integration_test/bazel_integration_test.bzl
index 84958a4..92d64e5 100644
--- a/tools/bazel_integration_test/bazel_integration_test.bzl
+++ b/tools/bazel_integration_test/bazel_integration_test.bzl
@@ -24,13 +24,6 @@
),
}
-# Avoid using non-normalized paths (workspace/../other_workspace/path)
-def _to_manifest_path(ctx, file):
- if file.short_path.startswith("../"):
- return file.short_path[3:]
- else:
- return ctx.workspace_name + "/" + file.short_path
-
def _config_impl(ctx):
if len(SUPPORTED_BAZEL_VERSIONS) > 1:
fail("""