mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/setuptools: Silence py2 warning
The py2 warning is not very useful for us and its verbosity breaks other packages. Closes: https://bugs.gentoo.org/723680 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -41,6 +41,11 @@ DISTUTILS_IN_SOURCE_BUILD=1
|
||||
DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||
|
||||
python_prepare_all() {
|
||||
# silence the py2 warning that is awfully verbose and breaks some
|
||||
# packages by adding unexpected output
|
||||
# (also, we know!)
|
||||
sed -i -e '/py2_warn/d' pkg_resources/__init__.py || die
|
||||
|
||||
# disable tests requiring a network connection
|
||||
rm setuptools/tests/test_packageindex.py || die
|
||||
|
||||
Reference in New Issue
Block a user