Skip to content

Commit 4d73e04

Browse files
committed
more robust skipping of the dist_info
1 parent 6405e4c commit 4d73e04

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

  • python/private
  • tests/modules/other/simple_v2/site-packages/simple-2.0.0.dist-info/licenses

python/private/py_library.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,12 @@ def _get_venv_symlinks(ctx, dist_info_metadata):
301301
path = path.removeprefix(site_packages_root)
302302
dir_name, _, filename = path.rpartition("/")
303303

304-
if dir_name.endswith(".dist-info") and src.extension not in PYTHON_FILE_EXTENSIONS:
304+
if dist_info_metadata and dir_name in path:
305305
# we have already handled the stuff
306306
continue
307+
308+
if src.extension not in PYTHON_FILE_EXTENSIONS:
309+
fail("TODO, symlinking non-Python files is not yet supported: {}".format(src))
307310
elif dir_name:
308311
# This can be either a directory with libs (e.g. numpy.libs)
309312
# or a directory with `__init__.py` file that potentially also needs to be
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Some License

0 commit comments

Comments
 (0)