projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e98c84
)
dev-python/urwid: Use python_is_python3 to determine current Python implementation
author
Ming Dai
<radaiming@gmail.com>
Mon, 18 Apr 2016 11:14:01 +0000
(19:14 +0800)
committer
Ian Delaney
<idella4@gentoo.org>
Mon, 18 Apr 2016 15:18:58 +0000
(23:18 +0800)
Package-Manager: portage-2.2.26
Closes: https://github.com/gentoo/gentoo/pull/1296
Signed-off-by: Ian Delaney <idella4@gentoo.org>
dev-python/urwid/urwid-1.3.1.ebuild
patch
|
blob
|
history
diff --git
a/dev-python/urwid/urwid-1.3.1.ebuild
b/dev-python/urwid/urwid-1.3.1.ebuild
index 892d50866db222e7c2e379446ec3bac849c6c2b5..0fa8a9fbeb76b36740d60a3d51462058251336d3 100644
(file)
--- a/
dev-python/urwid/urwid-1.3.1.ebuild
+++ b/
dev-python/urwid/urwid-1.3.1.ebuild
@@
-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