Skip to content

Commit ee002cf

Browse files
authored
chore(librarian): fix build for google-cloud-bigquery-storage (#14885)
Fixes #14884 Fixes #14881
1 parent af2986e commit ee002cf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.generator/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ RUN apt-get update && \
3232
libffi-dev \
3333
libsqlite3-dev \
3434
libreadline-dev \
35+
# Needed for `google-cloud-bigquery-storage` to avoid
36+
# the error `ModuleNotFoundError: No module named '_lzma'`
37+
# described in https://github.com/googleapis/google-cloud-python/issues/14884
38+
liblzma-dev \
3539
# ------------------------------------------------------
3640
&& apt-get clean && \
3741
rm -rf /var/lib/apt/lists/*

.generator/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,9 +1041,9 @@ def _verify_library_namespace(library_id: str, repo: str, is_mono_repo: bool):
10411041
for proto_file in library_path.rglob(proto_file):
10421042
proto_path = str(proto_file.parent.relative_to(library_path))
10431043
# Exclude proto paths which are not intended to be used for code generation.
1044-
# Generally any protos under the `samples` directory or in a
1044+
# Generally any protos under the `samples` or `tests` directories or in a
10451045
# directory called `proto` are not used for code generation.
1046-
if proto_path.startswith("samples") or proto_path.endswith("proto"):
1046+
if proto_path.startswith("tests") or proto_path.startswith("samples") or proto_path.endswith("proto"):
10471047
continue
10481048
relevant_dirs.add(proto_file.parent)
10491049

0 commit comments

Comments
 (0)