Files
packages/lang/python/python-protobuf/Makefile
T
Josef Schlehofer 6bec81f1cf python-protobuf: drop unused dependencies
python3-protobuf depends on protobuf and python3-ctypes, and the build
depends on protobuf/host. The PyPI source builds its extension module
from the bundled upb and utf8_range sources, ships the generated _pb2
modules and never runs protoc. Nothing in it uses ctypes.

The extension module needs only libc, libgcc_s and libpython in the
snapshot builds of ten architectures. Depend on python3-light alone.
A clean aarch64 system then installs 9.0 MB less, because protobuf,
protobuf-lite, libstdcpp, libatomic, python3-ctypes and libffi are no
longer pulled in.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-11-21 12:15:39 +02:00

39 lines
969 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
include $(TOPDIR)/rules.mk
PKG_NAME:=python-protobuf
PKG_VERSION:=7.36.2
PKG_RELEASE:=2
PYPI_NAME:=protobuf
PKG_HASH:=497d0463ff3316681da6c0b9e8d06cb465d61abce00b613ab42226175644d1bb
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:google:protobuf
PKG_BUILD_DEPENDS:=python-setuptools/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk
define Package/python3-protobuf
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Protobuf support for Python
URL:=https://github.com/protocolbuffers/protobuf
DEPENDS:=+python3-light
endef
define Package/python3-protobuf/description
Protocol Buffers - Google's data interchange format, for Python
endef
$(eval $(call Py3Package,python3-protobuf))
$(eval $(call BuildPackage,python3-protobuf))
$(eval $(call BuildPackage,python3-protobuf-src))