Skip to content

Commit e99bd61

Browse files
authored
Exclude unused libpython{python_version}.so to reduce the size of zipped Python executables (#772)
1 parent e69c2ae commit e99bd61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/repositories.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ filegroup(
170170
allow_empty = True,
171171
exclude = [
172172
"**/* *", # Bazel does not support spaces in file names.
173+
# Unused shared libraries. `python` executable and the `:libpython` target
174+
# depend on `libpython{python_version}.so.1.0`.
175+
"lib/libpython{python_version}.so",
173176
# static libraries
174177
"lib/**/*.a",
175178
# tests for the standard libraries.

0 commit comments

Comments
 (0)