dev-libs/libpy: Add py311, eapi8

Disable tests for now since they fail to build with a C++ error that I don't
know how to fix.

Closes: https://bugs.gentoo.org/894744
Closes: https://bugs.gentoo.org/896720
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2023-05-03 11:15:31 -07:00
parent 6e6f9189b9
commit ebd33ef3a9
3 changed files with 36 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
diff --git a/setup.py b/setup.py
index 61bc3da..39c2ea5 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
import ast
-from distutils.command.build_py import build_py as _build_py
+from setuptools.command.build_py import build_py as _build_py
import os
import pathlib
import shutil

View File

@@ -0,0 +1,11 @@
diff --git a/include/libpy/util.h b/include/libpy/util.h
index 3e0c72d..8669483 100644
--- a/include/libpy/util.h
+++ b/include/libpy/util.h
@@ -1,5 +1,6 @@
#pragma once
+#include <cstdint>
#include <algorithm>
#include <sstream>
#include <stdexcept>

View File

@@ -1,10 +1,11 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
inherit flag-o-matic distutils-r1
GTEST_VER="23b2a3b1cf803999fb38175f6e9e038a4495c8a5"
@@ -25,8 +26,11 @@ IUSE="sparsehash test"
COMMON_DEPEND="
>=dev-python/numpy-1.11.3[${PYTHON_USEDEP}]
"
RDEPEND="${COMMON_DEPEND}"
BDEPEND="${COMMON_DEPEND}
RDEPEND="
${COMMON_DEPEND}
"
BDEPEND="
${COMMON_DEPEND}
sparsehash? ( dev-cpp/sparsehash )
test? (
dev-cpp/gtest
@@ -37,10 +41,15 @@ BDEPEND="${COMMON_DEPEND}
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( sparsehash )"
# my C++ isn't good enough to fix the tests
RESTRICT+=" test"
PATCHES=(
"${FILESDIR}/libpy-0.2.5-no-werror.patch"
"${FILESDIR}/libpy-0.2.5-permissions.patch"
"${FILESDIR}/libpy-0.2.5-cflags.patch"
"${FILESDIR}/libpy-0.2.5-stdint.patch"
"${FILESDIR}/libpy-0.2.5-setuptools.patch"
)
python_test() {