diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-10-21 08:12:52 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-10-21 15:40:24 +0200 |
commit | 10df2a90238e0de37f1a7255d46cf0e0ff6b05b9 (patch) | |
tree | ba0fcc2f12e3ceed430dab95025486a0fd9310b6 /dev-python/pymongo | |
parent | dev-python/pykerberos: Add python3.5 support (diff) | |
download | gentoo-10df2a90238e0de37f1a7255d46cf0e0ff6b05b9.tar.gz gentoo-10df2a90238e0de37f1a7255d46cf0e0ff6b05b9.tar.bz2 gentoo-10df2a90238e0de37f1a7255d46cf0e0ff6b05b9.zip |
dev-python/pymongo: Add python3.5 support and correct usage of distutils-r1.eclass
* Add missing die
* Add missing PYTHON_USEDEP
* Only use python_test()
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/pymongo')
-rw-r--r-- | dev-python/pymongo/pymongo-2.9.ebuild | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/dev-python/pymongo/pymongo-2.9.ebuild b/dev-python/pymongo/pymongo-2.9.ebuild index 9dd9181ccd19..e5c8c39d8d27 100644 --- a/dev-python/pymongo/pymongo-2.9.ebuild +++ b/dev-python/pymongo/pymongo-2.9.ebuild @@ -4,7 +4,7 @@ EAPI=5 -PYTHON_COMPAT=( python{2_7,3_4} pypy ) +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) inherit check-reqs distutils-r1 @@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~hppa ~x86" IUSE="doc kerberos test" RDEPEND=" - kerberos? ( dev-python/pykerberos ) + kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] ) " DEPEND=" ${RDEPEND} @@ -55,20 +55,13 @@ python_compile_all() { fi } -src_test() { +python_test() { # Yes, we need TCP/IP for that... local DB_IP=127.0.0.1 local DB_PORT=27000 export DB_IP DB_PORT - # 1.5G of disk space per run. - local DISTUTILS_NO_PARALLEL_BUILD=1 - - distutils-r1_src_test -} - -python_test() { local dbpath=${TMPDIR}/mongo.db local logpath=${TMPDIR}/mongod.log @@ -114,11 +107,11 @@ python_test() { fi DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1 - mongod --dbpath "${dbpath}" --shutdown + mongod --dbpath "${dbpath}" --shutdown || die [[ ${failed} ]] && die "Tests fail with ${EPYTHON}" - rm -rf "${dbpath}" + rm -rf "${dbpath}" || die } python_install_all() { |