[MacPorts] #38912: replace py${python.version}-pil with py${python.version}-Pillow
#38912: replace py${python.version}-pil with py${python.version}-Pillow -------------------------+----------------------- Reporter: mmoll@… | Owner: jmr Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: python3 pil | Port: py-opengl -------------------------+----------------------- Pillow is a fork of pil that includes support for python3. Allowing py32-Pillow to satisfy the py32-pil dependency is another option, but I don't see how you'd do that. Py32-opengl installs just fine with these small changes: {{{ Index: Portfile =================================================================== --- Portfile (revision 105524) +++ Portfile (working copy) @@ -26,11 +26,11 @@ rmd160 0cbf4bc7c2e9ba59225534085f05ee589b26fc54 \ sha256 9ef93bbea2c193898341f574e281c3ca0dfe87c53aa25fbec4b03581f6d1ba03 -python.versions 24 25 26 27 +python.versions 24 25 26 27 32 33 if {$subport != $name} { depends_build port:py${python.version}-distribute - depends_lib port:py${python.version}-pil \ + depends_lib port:py${python.version}-Pillow \ port:py${python.version}-opengl-accelerate \ port:py${python.version}-tkinter if {${python.version} == 24} { }}} -- Ticket URL: <https://trac.macports.org/ticket/38912> MacPorts <http://www.macports.org/> Ports system for OS X
#38912: py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow ------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-opengl | ------------------------+------------------- Changes (by larryv@…): * owner: jmr => jmr@… * keywords: python3 pil => -- Ticket URL: <https://trac.macports.org/ticket/38912#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38912: py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow ------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-opengl | ------------------------+------------------- Comment (by jmr@…): Have you tested that it works after installing? The pillow readme says that the module needs to be imported slightly differently. I'll probably go with pillow only for python 3.x. -- Ticket URL: <https://trac.macports.org/ticket/38912#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38912: py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow ------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-opengl | ------------------------+------------------- Comment (by mmoll@…): I tried py27-OpenGL with py27-Pillow and that seems to work just fine. It tried to find what you are talking about, but I can't find it. -- Ticket URL: <https://trac.macports.org/ticket/38912#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38912: py*-opengl: replace py${python.version}-pil with py${python.version}-Pillow ------------------------+------------------- Reporter: mmoll@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-opengl | ------------------------+------------------- Comment (by jmr@…): https://github.com/python-imaging/Pillow/blob/master/README.rst is what I was referring to:
To run your existing PIL-compatible code with Pillow, it needs to be modified to import the Imaging module from the PIL namespace instead of the global namespace.
Note If your code imports _imaging, it will no longer work.
-- Ticket URL: <https://trac.macports.org/ticket/38912#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38912: py*-opengl: support python 3.x with py${python.version}-Pillow --------------------------+-------------------- Reporter: mmoll@… | Owner: jmr@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: py-opengl | --------------------------+-------------------- Changes (by jmr@…): * status: new => closed * type: defect => enhancement * version: 2.1.3 => * resolution: => fixed Comment: r105848 -- Ticket URL: <https://trac.macports.org/ticket/38912#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts