diff options
author | 2014-02-04 19:59:37 +0100 | |
---|---|---|
committer | 2014-03-01 22:10:17 +0100 | |
commit | b98746cf5b78d8889973a854a0175fdfb6601200 (patch) | |
tree | 194c6855cf03479cfdd1113129280b30544242b5 /dev-python | |
parent | dev-python/m3u8 - new (diff) | |
download | eroen-b98746cf5b78d8889973a854a0175fdfb6601200.tar.gz eroen-b98746cf5b78d8889973a854a0175fdfb6601200.tar.bz2 eroen-b98746cf5b78d8889973a854a0175fdfb6601200.zip |
dev-python/m3u8 - enable 2to3
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/m3u8/m3u8-9999.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-python/m3u8/m3u8-9999.ebuild b/dev-python/m3u8/m3u8-9999.ebuild index 9e2335a..20a3d19 100644 --- a/dev-python/m3u8/m3u8-9999.ebuild +++ b/dev-python/m3u8/m3u8-9999.ebuild @@ -7,8 +7,7 @@ # $Header: $ EAPI=5 -# needs 2to3 for urlparse -PYTHON_COMPAT=(python2_7) +PYTHON_COMPAT=(python2_7 python3_2 python3_3) DESCRIPTION="m3u8 parser" HOMEPAGE="https://pypi.python.org/pypi/m3u8 https://github.com/globocom/m3u8" @@ -38,7 +37,16 @@ DEPEND="${VCS_DEPEND} sys-process/procps )" RDEPEND="" +python_prepare() { + if [[ "${EPYTHON}" == python3* ]]; then + 2to3-"${EPYTHON#python}" -w ${PN} || die + fi +} + python_test() { + if [[ "${EPYTHON}" == python3* ]]; then + 2to3-"${EPYTHON#python}" -w tests || die + fi sed -e '/pip install/c:' \ -i runtests || die ./runtests || die |