public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] Thoughts on PIL and Pillow
@ 2013-05-28 17:45 Mike Gilbert
  2013-05-28 17:58 ` Michał Górny
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Gilbert @ 2013-05-28 17:45 UTC (permalink / raw
  To: gentoo-python; +Cc: Gentoo Python Project

Hi all,

I would like to collect opinions on how to handle PIL
(dev-python/imaging) and its fork Pillow.

PIL allows its modules to be imported from the PIL namespace, or from
the top-level namespace for backward compatibility. For example:

import Image # legacy import
from PIL import Image

Pillow removes the backward compatibility and no longer allows imports
from the top-level namespace.

Arfrever and I have assembled a tracker bug of packages which need
updating to be compatible with Pillow.

https://bugs.gentoo.org/show_bug.cgi?id=471488

The question I have: Is it better to have Pillow as a separate package
and set up a virtual, or should Pillow just be added as a version bump
of dev-python/imaging?

The portage tree currently has both dev-python/imaging-2.0.0
(hard-masked), and dev-python/pillow-2.0.0. My intent was to eliminate
dev-python/pillow with a pkg move, but upon further consideration I
would like to gather some more opinions on the matter.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-python] Thoughts on PIL and Pillow
  2013-05-28 17:45 [gentoo-python] Thoughts on PIL and Pillow Mike Gilbert
@ 2013-05-28 17:58 ` Michał Górny
  2013-05-28 21:19   ` yac
  2013-06-03  7:39   ` Arfrever Frehtes Taifersar Arahesis
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2013-05-28 17:58 UTC (permalink / raw
  To: Mike Gilbert; +Cc: gentoo-python, Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

On Tue, 28 May 2013 13:45:22 -0400
Mike Gilbert <floppym@gentoo.org> wrote:

> The question I have: Is it better to have Pillow as a separate package
> and set up a virtual, or should Pillow just be added as a version bump
> of dev-python/imaging?
> 
> The portage tree currently has both dev-python/imaging-2.0.0
> (hard-masked), and dev-python/pillow-2.0.0. My intent was to eliminate
> dev-python/pillow with a pkg move, but upon further consideration I
> would like to gather some more opinions on the matter.

Moving forks onto original packages sounds much like Arfrever was doing
in the past. That's why we have dev-python/setuptools which is not
setuptools, doesn't it?

Merging two unmerged projects into a single ebuild is a mess. Just keep
them separate, make a virtual for it. When packages work with pillow,
switch them to the virtual.

And if we decide to drop dev-python/imaging in the future, we'll just
change virtual deps to pillow.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-python] Thoughts on PIL and Pillow
  2013-05-28 17:58 ` Michał Górny
@ 2013-05-28 21:19   ` yac
  2013-06-03  7:39   ` Arfrever Frehtes Taifersar Arahesis
  1 sibling, 0 replies; 4+ messages in thread
From: yac @ 2013-05-28 21:19 UTC (permalink / raw
  To: gentoo-python

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

On Tue, 28 May 2013 19:58:40 +0200
Michał Górny <mgorny@gentoo.org> wrote:

> On Tue, 28 May 2013 13:45:22 -0400
> Mike Gilbert <floppym@gentoo.org> wrote:
> 
> > The question I have: Is it better to have Pillow as a separate
> > package and set up a virtual, or should Pillow just be added as a
> > version bump of dev-python/imaging?
> > 
> > The portage tree currently has both dev-python/imaging-2.0.0
> > (hard-masked), and dev-python/pillow-2.0.0. My intent was to
> > eliminate dev-python/pillow with a pkg move, but upon further
> > consideration I would like to gather some more opinions on the
> > matter.
> 
> Moving forks onto original packages sounds much like Arfrever was
> doing in the past. That's why we have dev-python/setuptools which is
> not setuptools, doesn't it?
> 
> Merging two unmerged projects into a single ebuild is a mess. Just
> keep them separate, make a virtual for it. When packages work with
> pillow, switch them to the virtual.

+1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-python] Thoughts on PIL and Pillow
  2013-05-28 17:58 ` Michał Górny
  2013-05-28 21:19   ` yac
@ 2013-06-03  7:39   ` Arfrever Frehtes Taifersar Arahesis
  1 sibling, 0 replies; 4+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2013-06-03  7:39 UTC (permalink / raw
  To: gentoo-python

[-- Attachment #1: Type: Text/Plain, Size: 460 bytes --]

2013-05-28 19:58 Michał Górny napisał(a):
> Moving forks onto original packages sounds much like Arfrever was doing
> in the past. That's why we have dev-python/setuptools which is not
> setuptools, doesn't it?

It was not any mistake, but a well planned change. See:
http://mail.python.org/pipermail/distutils-sig/2013-March/020126.html
http://mail.python.org/pipermail/distutils-sig/2013-May/020838.html

--
Arfrever Frehtes Taifersar Arahesis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-03  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 17:45 [gentoo-python] Thoughts on PIL and Pillow Mike Gilbert
2013-05-28 17:58 ` Michał Górny
2013-05-28 21:19   ` yac
2013-06-03  7:39   ` Arfrever Frehtes Taifersar Arahesis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox