mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/slimit: revbump to silence warning on module import
Closes: https://bugs.gentoo.org/660510 Closes: https://github.com/gentoo/gentoo/pull/9068 Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
@@ -15,7 +15,7 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/ply[${PYTHON_USEDEP}]
|
||||
RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
@@ -25,6 +25,17 @@ DEPEND="${RDEPEND}
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-python3.patch" )
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
rm "${BUILD_DIR}"/lib/slimit/*tab.py || die
|
||||
|
||||
# Regenerate yacctab.py and lextab.py files to avoid warnings whenever
|
||||
# the module is imported. See https://github.com/rspivak/slimit/issues/97
|
||||
# for details
|
||||
"${EPYTHON}" -B -c 'import slimit;slimit.minify("")' || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py pytest --addopts "${BUILD_DIR}" || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user