diff options
Diffstat (limited to 'dev-python/Babel/Babel-2.10.2.ebuild')
-rw-r--r-- | dev-python/Babel/Babel-2.10.2.ebuild | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/dev-python/Babel/Babel-2.10.2.ebuild b/dev-python/Babel/Babel-2.10.2.ebuild index af5ed2211ba1..02e77dc3bc66 100644 --- a/dev-python/Babel/Babel-2.10.2.ebuild +++ b/dev-python/Babel/Babel-2.10.2.ebuild @@ -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() { |