Strip out transitive pypi sourced sources

This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-12 14:07:20 -06:00
parent ea9c274cf4
commit bdf31076a7

View file

@ -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