dev-python/urwid: Use python_is_python3 to determine current Python implementation

Package-Manager: portage-2.2.26
Closes: https://github.com/gentoo/gentoo/pull/1296

Signed-off-by: Ian Delaney <idella4@gentoo.org>
This commit is contained in:
Ming Dai
2016-04-18 19:14:01 +08:00
committed by Ian Delaney
parent 9e98c84379
commit e2661df287

View File

@@ -27,7 +27,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.1.0-sphinx.patch )
python_compile_all() {
if use doc ; then
if [[ ${EPYTHON} == python3* ]] ; then
if python_is_python3; then
2to3 -nw --no-diffs docs/conf.py || die
fi
cd docs
@@ -36,7 +36,7 @@ python_compile_all() {
}
python_compile() {
if [[ ${EPYTHON} == python2* ]] ; then
if ! python_is_python3; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
export CFLAGS
fi