mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/pexpect: fix build with python2 disabled
Fixes: 6df79dfa10
Bug: https://bugs.gentoo.org/703100
Package-Manager: Portage-2.3.99, Repoman-2.3.22_p29
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
@@ -31,6 +31,14 @@ python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
if ! python_is_python3; then
|
||||
# https://bugs.gentoo.org/703100
|
||||
rm "${D}$(python_get_sitedir)/pexpect/_async.py" || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
if use examples; then
|
||||
@@ -38,8 +46,4 @@ python_install_all() {
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
|
||||
# Address byte-compile QA warning, see https://bugs.gentoo.org/703100
|
||||
python_setup -2
|
||||
rm "${D}$(python_get_sitedir)"/pexpect/_async.py || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user