public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/grpc] rawhide: Add buildtime and runtime dependency on python3-pkg-resources
Date: Fri, 05 Jun 2026 15:32:17 GMT	[thread overview]
Message-ID: <178067353707.1.6949619125009389465.rpms-grpc-1790ce7e86c6@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/grpc
            Branch : rawhide
            Commit : 1790ce7e86c69f7e37f7fe9eed1431cc1a4a5b29
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-06-05T15:31:57+00:00
            Stats  : +2/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/grpc/c/1790ce7e86c69f7e37f7fe9eed1431cc1a4a5b29?branch=rawhide

            Log:
            Add buildtime and runtime dependency on python3-pkg-resources

grpc_tools/protoc.py and grpc_tools/command.py
use pkg_resources at runtime without a try-except guard.

Build fails without it with:

    Traceback (most recent call last):
      File "/builddir/build/BUILD/grpc-1.48.4-build/grpc-1.48.4/setup.py", line 43, in <module>
        import pkg_resources
    ModuleNotFoundError: No module named 'pkg_resources'

Assisted-By: Claude Opus 4.6

---
diff --git a/grpc.spec b/grpc.spec
index 7a5dc58..74d08c4 100644
--- a/grpc.spec
+++ b/grpc.spec
@@ -242,6 +242,7 @@ BuildRequires:  gdb
 
 BuildRequires:  python3-devel
 BuildRequires:  python3dist(setuptools)
+BuildRequires:  python3-pkg-resources
 
 # grpcio (setup.py) setup_requires (with
 #     GRPC_PYTHON_ENABLE_DOCUMENTATION_BUILD, which is NOT enabled):
@@ -682,6 +683,7 @@ Python language bindings for gRPC (HTTP/2-based RPC framework).
 
 %package -n python3-grpcio-tools
 Summary:       Package for gRPC Python tools
+Requires:      python3-pkg-resources
 # License:        same as base package
 
 Provides:       bundled(upb)

                 reply	other threads:[~2026-06-05 15:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178067353707.1.6949619125009389465.rpms-grpc-1790ce7e86c6@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox