mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-24 08:31:16 +01:00
cython: unmask 3.x
This commit is contained in:
parent
df122a0857
commit
b5ae91f483
9 changed files with 140 additions and 2 deletions
1
dev-python/grpcio-tools/Manifest
Normal file
1
dev-python/grpcio-tools/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST grpcio-tools-1.59.0.tar.gz 4622547 BLAKE2B 1d6cd5f375a4139bc977f04b2b0f18689e4df58d29f6ca5f05ea8fb1e47ba455d7e6c0c65ee11467d878fe12f584a641d75153f0ae59aa8ec28289a0c102cddc SHA512 15686fb90c2c228875792a580a2637098ec07a7f715302af7efb28b28c19c0083616786c1b526984a225035652372c5898256cb17536225c313797a1d0c85675
|
||||
36
dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild
Normal file
36
dev-python/grpcio-tools/grpcio-tools-1.59.0.ebuild
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
|
||||
inherit distutils-r1 multiprocessing prefix pypi
|
||||
|
||||
DESCRIPTION="Protobuf code generator for gRPC"
|
||||
HOMEPAGE="https://grpc.io"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
~dev-python/grpcio-${PV}[${PYTHON_USEDEP}]
|
||||
<dev-python/protobuf-python-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
hprefixify setup.py
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
|
||||
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
|
||||
}
|
||||
12
dev-python/grpcio-tools/metadata.xml
Normal file
12
dev-python/grpcio-tools/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gyakovlev@gentoo.org</email>
|
||||
<name>Georgy Yakovlev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">grpc/grpc</remote-id>
|
||||
<remote-id type="pypi">grpcio-tools</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
1
dev-python/grpcio/Manifest
Normal file
1
dev-python/grpcio/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST grpcio-1.59.0.tar.gz 24842974 BLAKE2B d883d9800f5b2025774c37a6c076500e113121b7e1254368d9c4b95c1170593969af4568492744527f909f828121630dd870210d2e2de718ba907be09f9b826b SHA512 1b345c2b87593934aa15e8019d858c6f7000d3e66ffd20ae538028aa109d8553ccff819ad8796b19c51d647851139d13b9158c9f2639b0b9506347ceff646637
|
||||
28
dev-python/grpcio/files/1.51.0-respect-cc.patch
Normal file
28
dev-python/grpcio/files/1.51.0-respect-cc.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From 209e9e0c21dd5bdf62d943dfd9caca40565734b5 Mon Sep 17 00:00:00 2001
|
||||
From: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||
Date: Mon, 28 Nov 2022 14:08:17 -0800
|
||||
Subject: [PATCH] respect CC variable
|
||||
|
||||
https://github.com/grpc/grpc/pull/26480
|
||||
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||
---
|
||||
src/python/grpcio/commands.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
|
||||
index 58ab57be47..6d8228ffa0 100644
|
||||
--- a/src/python/grpcio/commands.py
|
||||
+++ b/src/python/grpcio/commands.py
|
||||
@@ -228,7 +228,8 @@ class BuildExt(build_ext.build_ext):
|
||||
"""
|
||||
try:
|
||||
# TODO(lidiz) Remove the generated a.out for success tests.
|
||||
- cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++14', '-'],
|
||||
+ cc = os.environ.get('CC', 'cc')
|
||||
+ cc_test = subprocess.Popen([cc, '-x', 'c', '-std=c++14', '-'],
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
--
|
||||
2.38.1
|
||||
|
||||
48
dev-python/grpcio/grpcio-1.59.0.ebuild
Normal file
48
dev-python/grpcio/grpcio-1.59.0.ebuild
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing prefix pypi
|
||||
|
||||
DESCRIPTION="High-performance RPC framework (python libraries)"
|
||||
HOMEPAGE="https://grpc.io"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.1.1:0=[-bindist(-)]
|
||||
>=dev-libs/re2-0.2021.11.01:=
|
||||
=dev-python/cython-3*[${PYTHON_USEDEP}]
|
||||
<dev-python/protobuf-python-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}]
|
||||
net-dns/c-ares:=
|
||||
sys-libs/zlib:=
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#PATCHES=( "${FILESDIR}/1.51.0-respect-cc.patch" )
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
hprefixify setup.py
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
# os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', True)
|
||||
export GRPC_BUILD_WITH_BORING_SSL_ASM=
|
||||
export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
|
||||
export GRPC_PYTHON_BUILD_WITH_SYSTEM_RE2=1
|
||||
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
|
||||
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
|
||||
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
|
||||
}
|
||||
12
dev-python/grpcio/metadata.xml
Normal file
12
dev-python/grpcio/metadata.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gyakovlev@gentoo.org</email>
|
||||
<name>Georgy Yakovlev</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">grpc/grpc</remote-id>
|
||||
<remote-id type="pypi">grpcio</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
|
@ -315,7 +315,7 @@ dev-python/apng
|
|||
=dev-python/humanfriendly-9*
|
||||
|
||||
app-admin/opensnitch
|
||||
=dev-python/grpcio-tools-1.51*
|
||||
=dev-python/grpcio-tools-1.59*
|
||||
|
||||
#empire
|
||||
<dev-python/jq-1.6 ~amd64
|
||||
|
|
|
|||
|
|
@ -180,4 +180,4 @@ dev-lang/lua:0
|
|||
|
||||
# https://bugs.gentoo.org/897934
|
||||
# [TRACKER] Breakage with >=dev-python/cython-3
|
||||
>dev-python/cython-3.0.0
|
||||
# >dev-python/cython-3.0.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue