<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="person">
+ <email>vdupras@gentoo.org</email>
+ <name>Virgil Dupras</name>
+ </maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
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}
)
}
+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
}