[packages/protobuf] - building python from here requires basel, build it from python3-protobuf.spec for now

qboosh qboosh at pld-linux.org
Tue Mar 3 21:51:01 CET 2026


commit c21dbc484a5dfab20f99e7cac4e58952328b93f7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 3 21:51:03 2026 +0100

    - building python from here requires basel, build it from python3-protobuf.spec for now

 protobuf.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/protobuf.spec b/protobuf.spec
index 1ee073e..aa85261 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -4,7 +4,7 @@
 # - add bindings for csharp
 #
 # Conditional build:
-%bcond_without	python3		# Python 3.x bindings
+%bcond_with	python3		# Python 3.x bindings (built from python3-protobuf.spec; bulding working package from here requires bazel)
 %bcond_with	ruby		# Ruby bindings
 %bcond_without	tests		# test suite (requires 4+GB RAM on 64-bit archs)
 
@@ -42,6 +42,7 @@ BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	pkgconfig
 BuildRequires:	sed >= 4.0
 %if %{with python3}
+BuildRequires:	bazel
 BuildRequires:	python3-modules >= 1:3.8
 BuildRequires:	python3-setuptools
 BuildRequires:	rpm-pythonprov
@@ -260,8 +261,6 @@ buforów protokołowych (Protocol Buffers).
 	examples/add_person.rb \
 	examples/list_people.rb
 
-ln -sf dist/setup.py python/setup.py
-
 %build
 mkdir -p build
 cd build
@@ -276,9 +275,7 @@ export PROTOC="$(pwd)/protoc"
 cd ..
 
 %if %{with python3}
-cd python
-%py3_build
-cd ..
+bazel build //python/dist:binary_wheel
 %endif
 
 %if %{with ruby}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/protobuf.git/commitdiff/c21dbc484a5dfab20f99e7cac4e58952328b93f7



More information about the pld-cvs-commit mailing list