dev-python/Babel: Simplify the regen logic

Rather than using any-r1 approach to the regen with "slightly wrong"
BDEPEND, just do it as a part of normal phase.  The end result is pretty
much the same, and it avoids having to define python_check_deps().

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-06-16 06:30:55 +02:00
parent 423a8291a5
commit dfd4989272

View File

@@ -44,18 +44,16 @@ BDEPEND="
distutils_enable_sphinx docs
distutils_enable_tests pytest
python_check_deps() {
if [[ ${EPYTHON} == python3.8 ]] ; then
python_has_version "dev-python/backports-zoneinfo[${PYTHON_USEDEP}]" || return 1
fi
python_has_version "dev-python/pytz[${PYTHON_USEDEP}]"
}
python_configure_all() {
src_prepare() {
rm babel/locale-data/*.dat || die
rm babel/global.dat || die
"${EPYTHON}" scripts/import_cldr.py "${WORKDIR}"/common || die
distutils-r1_src_prepare
}
python_configure() {
if [[ ! -f babel/global.dat ]]; then
"${EPYTHON}" scripts/import_cldr.py "${WORKDIR}"/common || die
fi
}
python_test() {