mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
Merge updates from master
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Scripts to help retiring Gentoo developers"
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ case ${EAPI} in
|
||||
esac
|
||||
|
||||
# @ECLASS_VARIABLE: DISTUTILS_EXT
|
||||
# @PRE_INHERIT
|
||||
# @DEFAULT_UNSET
|
||||
# @DESCRIPTION:
|
||||
# Set this variable to a non-null value if the package (possibly
|
||||
@@ -1806,6 +1807,11 @@ distutils-r1_run_phase() {
|
||||
tc-export AR CC CPP CXX
|
||||
|
||||
if [[ ${DISTUTILS_EXT} ]]; then
|
||||
if [[ ${BDEPEND} == *dev-python/cython* ]] ; then
|
||||
# Workaround for https://github.com/cython/cython/issues/2747 (bug #918983)
|
||||
local -x CFLAGS="${CFLAGS} $(test-flags-CC -Wno-error=incompatible-pointer-types)"
|
||||
fi
|
||||
|
||||
local -x CPPFLAGS="${CPPFLAGS} $(usex debug '-UNDEBUG' '-DNDEBUG')"
|
||||
# always generate .c files from .pyx files to ensure we get latest
|
||||
# bug fixes from Cython (this works only when setup.py is using
|
||||
|
||||
@@ -153,17 +153,6 @@ _python_set_impls() {
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -n ${obsolete[@]} && ${EBUILD_PHASE} == setup ]]; then
|
||||
# complain if people don't clean up old impls while touching
|
||||
# the ebuilds recently. use the copyright year to infer last
|
||||
# modification
|
||||
# NB: this check doesn't have to work reliably
|
||||
if [[ $(head -n 1 "${EBUILD}" 2>/dev/null) == *2022* ]]; then
|
||||
eqawarn "Please clean PYTHON_COMPAT of obsolete implementations:"
|
||||
eqawarn " ${obsolete[*]}"
|
||||
fi
|
||||
fi
|
||||
|
||||
local supp=() unsupp=()
|
||||
|
||||
for i in "${_PYTHON_ALL_IMPLS[@]}"; do
|
||||
@@ -1336,15 +1325,8 @@ epytest() {
|
||||
_python_check_EPYTHON
|
||||
_python_check_occluded_packages
|
||||
|
||||
local color
|
||||
case ${NOCOLOR} in
|
||||
true|yes)
|
||||
color=no
|
||||
;;
|
||||
*)
|
||||
color=yes
|
||||
;;
|
||||
esac
|
||||
local color=yes
|
||||
[[ ${NO_COLOR} ]] && color=no
|
||||
|
||||
local args=(
|
||||
# verbose progress reporting and tracebacks
|
||||
@@ -1389,6 +1371,8 @@ epytest() {
|
||||
-p no:pytest-describe
|
||||
-p no:plus
|
||||
-p no:tavern
|
||||
# does something to logging
|
||||
-p no:salt-factories
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user