From: Virgil Dupras Date: Fri, 27 Jul 2018 02:45:39 +0000 (-0400) Subject: dev-python/pillow: Add support for Python 3.7 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=28ecfa178296c73f33305ece57d51346cf70b89f;p=gentoo.git dev-python/pillow: Add support for Python 3.7 * Remove spurious eutils inherit * Add myself as primary maintainer Closes: https://bugs.gentoo.org/661616 Package-Manager: Portage-2.3.43, Repoman-2.3.10 --- diff --git a/dev-python/pillow/metadata.xml b/dev-python/pillow/metadata.xml index c3f74b982665..270281456096 100644 --- a/dev-python/pillow/metadata.xml +++ b/dev-python/pillow/metadata.xml @@ -1,6 +1,10 @@ + + vdupras@gentoo.org + Virgil Dupras + python@gentoo.org Python diff --git a/dev-python/pillow/pillow-5.2.0.ebuild b/dev-python/pillow/pillow-5.2.0.ebuild index 1476c3915c58..b63542786fe6 100644 --- a/dev-python/pillow/pillow-5.2.0.ebuild +++ b/dev-python/pillow/pillow-5.2.0.ebuild @@ -3,10 +3,10 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{5,6} ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) PYTHON_REQ_USE='tk?,threads(+)' -inherit distutils-r1 eutils virtualx +inherit distutils-r1 virtualx MY_PN=Pillow MY_P=${MY_PN}-${PV} @@ -64,6 +64,15 @@ python_configure_all() { ) } +python_compile() { + # Pillow monkeypatches distutils to achieve parallel compilation. This + # conflicts with distutils' builtin parallel computation (since py35) + # and make builds hang. To avoid that, we set MAX_CONCURRENCY=1 to + # disable monkeypatching. Can be removed when/if + # https://github.com/python-pillow/Pillow/pull/3272 is merged. + MAX_CONCURRENCY=1 distutils-r1_python_compile +} + python_compile_all() { use doc && emake -C docs html }