mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user