dev-python/psycopg: Port to python3.10

Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Jakov Smolic
2021-05-06 22:15:11 +01:00
committed by Michał Górny
parent a528a1fd5e
commit 2a77b5475b

View File

@@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1 flag-o-matic
@@ -21,20 +21,10 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-li
IUSE="debug test"
RESTRICT="!test? ( test )"
# automagic dep on mxdatetime (from egenix-mx-base)
# the package was removed, so let's just make sure it's gone
RDEPEND=">=dev-db/postgresql-8.1:*"
DEPEND="${RDEPEND}
test? ( >=dev-db/postgresql-8.1[server] )
!!dev-python/egenix-mx-base"
python_compile() {
local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS}
! python_is_python3 && append-flags -fno-strict-aliasing
distutils-r1_python_compile
}
DEPEND="${RDEPEND}"
BDEPEND="
test? ( >=dev-db/postgresql-8.1[server] )"
python_prepare_all() {
if use debug; then