summaryrefslogtreecommitdiff
path: root/dev-python/grpcio
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-30 03:04:35 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-10-30 03:04:35 +0000
commitfb57e01054259b1160d01c3c7ed9efab7902ed7d (patch)
tree42985349c49b2294954c1923df85be8bfa0c0957 /dev-python/grpcio
parentbd35a61d88b111f25f4b10126e0d4755545fc7a5 (diff)
gentoo auto-resync : 30:10:2024 - 03:04:35
Diffstat (limited to 'dev-python/grpcio')
-rw-r--r--dev-python/grpcio/Manifest3
-rw-r--r--dev-python/grpcio/grpcio-1.67.0-r2.ebuild (renamed from dev-python/grpcio/grpcio-1.67.0-r1.ebuild)31
2 files changed, 13 insertions, 21 deletions
diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest
index aae251f0b57c..d7056205b554 100644
--- a/dev-python/grpcio/Manifest
+++ b/dev-python/grpcio/Manifest
@@ -1,4 +1,5 @@
DIST grpc-1.67.0.gh.tar.gz 17317493 BLAKE2B 81aaf9a4d293dd41d9d068e81eb8a9898b610498722dd6f9c5ff88118fc5a31a936ac83c7cdb4f56c288d131c7721beed8e307dd91bf3de5cc25951cdb06de5a SHA512 5e76a3147ca051e5304d5d64eefe124cd446dd5d7bd9a65667bae5474b59f70b32368d225e8345c9414bddb968c1390b8bcd08ed97abb62b543528289b29ec35
+DIST grpcio-1.67.0.tar.gz 12569330 BLAKE2B 597efd14625898daf8c7aeff65e1d5aac4e08f7152263784c41f6b9bf0b83b8774b01ada85bfd461191d34c547296be82b994694585a57ee306d6aceebf4a9dd SHA512 201ca2548b68561135a06de971dc5a2a87bebbb6e48b4aeca23389fdd3046a11677a440af75730a0ce7cc2b7c9c7e3ab4a43d0e040c803768d04a27be645bc4e
DIST grpcio_tools-1.67.0.tar.gz 5159163 BLAKE2B 54a7db77514033c4747d20a13fded114828fed23f649587c649f5ad2716d4bb31b80eeda560d55ae087a564cb9d34563a612cc91df581ae6b9a761f307828397 SHA512 f9644b4424aa68f1ae4d679c7b635db9bbfc0b493c76caf7d2e9fe0a49e5e81b6f146666c8dba3fc1d1c0db141f8fb362dd0ede0842c34cb178009412a672ec5
-EBUILD grpcio-1.67.0-r1.ebuild 3551 BLAKE2B 91c82242fb5d5787cd66a36d6d2204c7cbeb63fd36be7a45d3e8c937fefcb319773612a8fdf1905057d093677c6fd9c543f618d896e7f55557c1530c1967684b SHA512 2ebda666f7105bfc3493730ce57373af787da4063932d74b86d4109ae1dc23af2414076ec01df68dae25956f519460b66d7e3ab9fe3a8e774e3359909817d7c8
+EBUILD grpcio-1.67.0-r2.ebuild 3263 BLAKE2B 9ecadd30dc752ed9615ad5e69aa98066a0c062f2b273e226fc50079a3834e7a9a1104c88e58ab089aaca6a96259fc975b0c0c02f0837bbb97dd0b93e48c750d8 SHA512 d468faec5b85b5ae52999d8bf8ed454cac09405271749c69e72f62d28040e6da639568afb800102f45ed8eb9747d7c503b0672d5cd557b1c65ab7d7367751c18
MISC metadata.xml 359 BLAKE2B f52910dcf3d43b85556cce901ebcad89f3aaa992fbb366fcc905858634eac2add4d14a83bb4e534d64278e11653e28e50a3349cd641dd97949e7fb53a52d0dc3 SHA512 78ccb4fe497528d5dd9135feb3613038b9686b7892ac04136419cd7ccb935f73b5783dba0b1392b643bb1aeae24a73559c19ba14a1c51483b818e83a5c681a24
diff --git a/dev-python/grpcio/grpcio-1.67.0-r1.ebuild b/dev-python/grpcio/grpcio-1.67.0-r2.ebuild
index 92a90bd06766..184b99207647 100644
--- a/dev-python/grpcio/grpcio-1.67.0-r1.ebuild
+++ b/dev-python/grpcio/grpcio-1.67.0-r2.ebuild
@@ -17,15 +17,14 @@ HOMEPAGE="
https://pypi.org/project/grpcio/
"
# Tests need other packages from the source tree, so use a GitHub
-# archive. grpcio-tools is required for tests, and requires a bunch
-# of bundled libraries However, we also need bundled abseil-cpp,
-# so take that one from grpcio-tools to avoid two sdists.
-SRC_URI="
- https://github.com/grpc/grpc/archive/v${PV}.tar.gz
- -> ${MY_P}.gh.tar.gz
- $(pypi_sdist_url grpcio-tools)
+# archive. sdist provides bundled library sources (git submodules).
+SRC_URI+="
+ test? (
+ https://github.com/grpc/grpc/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+ $(pypi_sdist_url grpcio_tools)
+ )
"
-S=${WORKDIR}/${MY_P}
LICENSE="Apache-2.0"
SLOT="0"
@@ -33,7 +32,6 @@ KEYWORDS="~amd64 ~x86"
DEPEND="
dev-libs/openssl:=
- dev-libs/re2:=
net-dns/c-ares:=
sys-libs/zlib:=
"
@@ -52,14 +50,6 @@ BDEPEND="
EPYTEST_XDIST=1
distutils_enable_tests pytest
-src_unpack() {
- default
-
- # reuse the bundled abseil-cpp from grpcio-tools sdist.
- ln -s "${WORKDIR}/grpcio_tools-${PV}/third_party/abseil-cpp/absl" \
- "${S}/third_party/abseil-cpp/absl" || die
-}
-
src_configure() {
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
# system abseil-cpp crashes with USE=-debug, sigh
@@ -67,7 +57,8 @@ src_configure() {
#export GRPC_PYTHON_BUILD_SYSTEM_ABSL=1
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
- export GRPC_PYTHON_BUILD_SYSTEM_RE2=1
+ # re2 needs to be built against the same abseil-cpp version
+ #export GRPC_PYTHON_BUILD_SYSTEM_RE2=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
@@ -102,10 +93,10 @@ python_test() {
# grpcio_tools supports bundled libs only, and requires different
# flags
unset GRPC_PYTHON_CFLAGS
- pushd "${WORKDIR}/grpcio_tools-${PV}" >/dev/null || die
+ cd "${WORKDIR}/grpcio_tools-${PV}" || die
distutils_pep517_install "${BUILD_DIR}"/test
- popd >/dev/null || die
+ cd "${WORKDIR}/${MY_P}" || die
local protodir=src/proto/grpc/testing
local testdir=src/python/grpcio_tests
"${EPYTHON}" -m grpc_tools.protoc -I. --python_out="${testdir}" \