[MacPorts] #42917: py-pil: conflicts with py-Pillow
#42917: py-pil: conflicts with py-Pillow ----------------------+-------------------- Reporter: devans@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: py-pil ----------------------+-------------------- py-pil conflicts with py-Pillow as follows: {{{ ---> Activating py27-pil @1.1.7_7 Error: org.macports.activate for port py27-pil returned: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pilconvert.py is being used by the active py27-Pillow port. Please deactivate this port first, or use 'port -f activate py27-pil' to force the activation. Error: Failed to install py27-pil }}} py-Pillow is marked conflicts py-pil but not the other way round. As an aside, I understand that py-Pillow is a fork of py-pil. I wonder if these two ports are drop in replacements for each other and if so is there a way to declare a dependency that can be satisfied by either one? Currently some ports use one and others another which causes installation problems if you need both. -- Ticket URL: <https://trac.macports.org/ticket/42917> MacPorts <http://www.macports.org/> Ports system for OS X
#42917: py-pil: conflicts with py-Pillow -----------------------+------------------- Reporter: devans@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-pil | -----------------------+------------------- Comment (by stromnov@…): Yes, Pillow is a fork of PIL, which incorporates some long awaited patches and supports py3k. (Actually, PIL 1.1.7 was released more than 4 years ago). PIL and Pillow use the same Python namespace 'PIL', so those packages can't be both installed at the same time. Also, Pillow is not 100%-compatible drop-in for PIL: PIL allows: {{{ #!python import Image # old style ... from PIL import Image ... import PIL.Image }}} while Pillow don't support first variant, and some outdated packages, which depends on old PIL style, will require some patching. -- Ticket URL: <https://trac.macports.org/ticket/42917#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42917: py-pil: conflicts with py-Pillow -----------------------+------------------- Reporter: devans@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-pil | -----------------------+------------------- Comment (by devans@…): Replying to [comment:1 stromnov@…]:
Yes, Pillow is a fork of PIL, which incorporates some long awaited patches and supports py3k. (Actually, PIL 1.1.7 was released more than 4 years ago).
PIL and Pillow use the same Python namespace 'PIL', so those packages can't be both installed at the same time.
Also, Pillow is not 100%-compatible drop-in for PIL:
PIL allows: {{{ #!python import Image # old style ... from PIL import Image ... import PIL.Image }}} while Pillow don't support first variant, and some outdated packages, which depends on old PIL style, will require some patching.
Thanks for the clear explanation. I take it then that Pillow is the recommended choice for new development or is that a political statement? -- Ticket URL: <https://trac.macports.org/ticket/42917#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42917: py-pil: conflicts with py-Pillow -----------------------+------------------- Reporter: devans@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: py-pil | -----------------------+------------------- Comment (by stromnov@…): I don't know, really. I just use new PIL style. Note, most of py3k packages de-facto supports Pillow (PIL not compatible with py3k). So, if package support py3k, then it (probably) compatible with Pillow. -- Ticket URL: <https://trac.macports.org/ticket/42917#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42917: py-pil: conflicts with py-Pillow -----------------------+-------------------- Reporter: devans@… | Owner: jmr@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: py-pil | -----------------------+-------------------- Changes (by devans@…): * status: new => closed * version: 2.2.1 => * resolution: => fixed Comment: Fixed in r122317. -- Ticket URL: <https://trac.macports.org/ticket/42917#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts