mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
dev-python/flake8: Stop build from trying to install pytest-runner
The build system unconditionally requires pytest-runner, which we may not install (if test is not in FEATURES). I then "helpfully" tries to install it, causing sandbox violations.
This commit is contained in:
@@ -44,7 +44,10 @@ PDEPEND="
|
||||
|
||||
python_prepare_all() {
|
||||
# Gentoo has flake8 support restored in >=pep8-1.6.2-r1.
|
||||
sed -e 's:, != 1.6.2::' -i setup.py || die
|
||||
sed -i -e 's:, != 1.6.2::' setup.py || die
|
||||
# Flake8 falsely assumes it needs pytest-runner unconditionally and will
|
||||
# try to install it, causing sandbox violations.
|
||||
sed -i -e "/setup_requires=\['pytest-runner'\],/d" setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user