From ab3615eb3f5ddc243252b317890eb700f1cefc0f Mon Sep 17 00:00:00 2001 From: adam lazur Date: Mon, 12 Sep 2022 16:05:07 +0900 Subject: [PATCH] ignore .pyc files in py_library() targets created in pip_install_dependencies() .pyc files are not hermetic and ruin hashes for remote-caching. Observed with pypi__pip and pypi__setuptools --- python/pip_install/repositories.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pip_install/repositories.bzl b/python/pip_install/repositories.bzl index 7c70104977..1c1d3bae45 100644 --- a/python/pip_install/repositories.bzl +++ b/python/pip_install/repositories.bzl @@ -92,7 +92,7 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "lib", srcs = glob(["**/*.py"]), - data = glob(["**/*"], exclude=["**/*.py", "**/* *", "BUILD", "WORKSPACE"]), + data = glob(["**/*"], exclude=["**/*.py", "**/*.pyc", "**/* *", "BUILD", "WORKSPACE"]), # This makes this directory a top-level in the python import # search path for anything that depends on this. imports = ["."], pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy