From bdf31076a72bc33449870e58f6e048672f6da014 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Thu, 12 Aug 2021 14:07:20 -0600 Subject: [PATCH] Strip out transitive pypi sourced sources --- zapp/zapp.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zapp/zapp.bzl b/zapp/zapp.bzl index 5159faf..4c805c9 100644 --- a/zapp/zapp.bzl +++ b/zapp/zapp.bzl @@ -61,6 +61,8 @@ def _zapp_impl(ctx): # TODO: also handle ctx.attr.src.data_runfiles.symlinks srcs = [ f for f in ctx.attr.src.default_runfiles.files.to_list() + # Strip out transitive sources from PyPi archives + if f.path.find("/pypi__") == -1 ] # Find the list of directories to add to sys