dev-python/pillow: Add support for Python 3.7
authorVirgil Dupras <vdupras@gentoo.org>
Fri, 27 Jul 2018 02:45:39 +0000 (22:45 -0400)
committerVirgil Dupras <vdupras@gentoo.org>
Fri, 27 Jul 2018 02:58:53 +0000 (22:58 -0400)
* 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

dev-python/pillow/metadata.xml
dev-python/pillow/pillow-5.2.0.ebuild

index c3f74b9826651232513a3cbd03ce62b9062c318e..27028145609678e2584bb94a59d3c1c27fdf1e30 100644 (file)
@@ -1,6 +1,10 @@
 <?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>
index 1476c3915c58d7f7df9c538f112a186292050a40..b63542786fe6287559b2d994581c56478a63d626 100644 (file)
@@ -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
 }