mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-24 22:42:58 +02:00
python3-protobuf: update to 5.29.4
upb is now the default implementation https://github.com/protocolbuffers/protobuf/blob/main/python/README.md
This commit is contained in:
parent
e7e16e5edb
commit
9c8b2e49da
2 changed files with 5 additions and 28 deletions
|
@ -1,11 +0,0 @@
|
|||
--- a/python/setup.py 2023-07-05 23:53:30.000000000 +0200
|
||||
+++ - 2023-07-14 16:19:35.949677747 +0200
|
||||
@@ -370,7 +370,7 @@
|
||||
extra_compile_args.append('-Wno-invalid-offsetof')
|
||||
extra_compile_args.append('-Wno-sign-compare')
|
||||
extra_compile_args.append('-Wno-unused-variable')
|
||||
- extra_compile_args.append('-std=c++14')
|
||||
+ extra_compile_args.append('-std=c++17')
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
extra_compile_args.append('-Wno-shorten-64-to-32')
|
|
@ -1,30 +1,18 @@
|
|||
# Template file for 'python3-protobuf'
|
||||
pkgname=python3-protobuf
|
||||
version=4.25.2
|
||||
revision=2
|
||||
version=5.29.4
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
build_wrksrc=python
|
||||
hostmakedepends="python3-setuptools python3-wheel protobuf"
|
||||
makedepends="python3-devel protobuf-devel"
|
||||
depends="python3-setuptools python3-six"
|
||||
checkdepends="python3-numpy"
|
||||
short_desc="Python3 bindings for Google Protocol Buffers"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://developers.google.com/protocol-buffers/"
|
||||
# PyPi release does not have bits for cppext
|
||||
distfiles="https://github.com/protocolbuffers/protobuf/releases/download/v${version#*.}/protobuf-${version#*.}.tar.gz"
|
||||
checksum=8ff511a64fc46ee792d3fe49a5a1bcad6f7dc50dfbba5a28b0e5b979c17f9871
|
||||
make_check=no # ImportError: cannot import name 'unittest_retention_pb2' from 'google.protobuf'
|
||||
|
||||
build_options="cppext"
|
||||
build_options_default="cppext"
|
||||
desc_option_cppext="Build C++ extension to improve performance"
|
||||
|
||||
if [ "$build_option_cppext" ]; then
|
||||
make_build_args="--cpp_implementation"
|
||||
make_install_args="--cpp_implementation"
|
||||
makedepends+=" python3-devel protobuf-devel"
|
||||
fi
|
||||
distfiles="${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz"
|
||||
checksum=4f1dfcd7997b31ef8f53ec82781ff434a28bf71d9102ddde14d076adcfc78c99
|
||||
|
||||
post_install() {
|
||||
sed -n 1,29p google/protobuf/__init__.py >LICENSE
|
||||
|
|
Loading…
Add table
Reference in a new issue