/[gentoo-x86]/dev-python/futures/futures-2.2.0.ebuild
Gentoo

Contents of /dev-python/futures/futures-2.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Mar 8 23:48:47 2015 UTC (5 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable, bug 540290

(Portage version: 2.2.17/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/futures/futures-2.2.0.ebuild,v 1.3 2015/03/06 22:21:38 pacho Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 pypy )
7 inherit distutils-r1
8
9 DESCRIPTION="Backport of the concurrent.futures package from Python 3.2"
10 HOMEPAGE="http://code.google.com/p/pythonfutures http://pypi.python.org/pypi/futures"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="doc"
17
18 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
19 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
20
21 python_compile_all() {
22 use doc && emake -C docs html
23 }
24
25 python_test() {
26 # tests that fail under pypy
27 # http://code.google.com/p/pythonfutures/issues/detail?id=27
28 if [[ "${EPYTHON}" == pypy ]]; then
29 sed -e 's:test_del_shutdown:_&:g' \
30 -e 's:test_repr:_&:' -i test_futures.py || die
31 fi
32 "${PYTHON}" test_futures.py || die "Tests fail with ${EPYTHON}"
33 }
34
35 python_install_all() {
36 local DOCS=( CHANGES )
37 use doc && local HTML_DOCS=( docs/_build/html/. )
38 distutils-r1_python_install_all
39 }

  ViewVC Help
Powered by ViewVC 1.1.20