sps-extra · log · files · refs · tags · releases · people · languages · GitHub · file
python/python-protobuf/recipe
name python-protobuf
version 7.36.2
release 1
arch any
description python-protobuf: protobuf Python module
source https://files.pythonhosted.org/packages/d9/89/5b8517baa72f84a67b8a307ba953c91057af618bf40bf676f3c03551f8f0/protobuf-${version}.tar.gz
hash sha256:497d0463ff3316681da6c0b9e8d06cb465d61abce00b613ab42226175644d1bb
depend filesystem
depend python
builddep python-setuptools
install python3 -m pip install --no-deps --no-build-isolation --no-compile --root="$PKG" --prefix=/usr .
install pyver=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])'); \
if [ -d "$PKG/usr/lib/python$pyver" ]; then \
mkdir -p "$PKG/usr/lib64"; \
cp -a "$PKG/usr/lib/python$pyver/." "$PKG/usr/lib64/python$pyver/"; \
rm -rf "$PKG/usr/lib/python$pyver"; \
rmdir "$PKG/usr/lib" 2>/dev/null || :; fi