Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471186 - dev-python/django should depend on || ( dev-python/imaging dev-python/pillow )
Summary: dev-python/django should depend on || ( dev-python/imaging dev-python/pillow )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 401009
Blocks: 470990
  Show dependency tree
 
Reported: 2013-05-24 18:56 UTC by Shubhadeep Chaudhuri
Modified: 2013-06-04 22:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shubhadeep Chaudhuri 2013-05-24 18:56:56 UTC
Currently, dev-python/django can't be installed with dev-python/pillow.
Please allow it to be built alongwith either one of dev-python/imaging or dev-python/pillow.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-05-26 16:59:51 UTC
Does it work 'out of the box'?
Comment 2 Shubhadeep Chaudhuri 2013-05-26 20:17:18 UTC
I'm using =dev-python/imaging-2.0.0-r1000 from progress overlay which actually installs pillow. It's working fine for me.
I haven't tried with the pillow ebuild in portage.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-05-26 20:40:34 UTC
Which means you are clearly reporting your issue to the wrong bug tracker. Even if we supported mixing Gentoo ebuilds with Progress overlay which we don't, Progress overlay will override the ebuilds for django if it doesn't already.
Comment 4 Shubhadeep Chaudhuri 2013-05-26 21:42:22 UTC
(In reply to Michał Górny from comment #3)
> Which means you are clearly reporting your issue to the wrong bug tracker.
> Even if we supported mixing Gentoo ebuilds with Progress overlay which we
> don't, Progress overlay will override the ebuilds for django if it doesn't
> already.

I think you misunderstood. Let me explain properly.

I want to install django with pillow. The gentoo ebuild for dev-python/django pulls in dev-python/imaging but the gentoo ebuild for dev-python/imaging blocks dev-python/pillow.

Now since =dev-python/imaging-2.0.0-r1000 from progress actually installs pillow instead of PIL, I let portage install it.

But I would rather mask dev-python/imaging & install dev-python/pillow from portage but since portage didn't allow me to do that, I went the other way to avoid the hassle of creating an ebuild in my local overlay.
Comment 5 Mike Gilbert gentoo-dev 2013-05-26 22:18:33 UTC
Let's take another look at this.
Comment 6 Mike Gilbert gentoo-dev 2013-05-26 22:34:41 UTC
I see two possible resolutions here: we either rename dev-python/pillow to dev-python/imaging, as Arfrever has done in progress overlay, or we create a virtual for this.

I'm leaning toward the former since the original PIL has not been updated since 2009.
Comment 7 Matt Summers (RETIRED) gentoo-dev 2013-05-28 13:29:05 UTC
Please use a virtual to keep things clean, these are technically two different packages.
Comment 8 Matt Summers (RETIRED) gentoo-dev 2013-05-28 13:33:14 UTC
(In reply to Matt Summers from comment #7)
> Please use a virtual to keep things clean, these are technically two
> different packages.

Perhaps I should retract this statement given that a virtual may not work in all cases due to the way things get imported. 

|| ( dev-python/imaging dev-python/pillow ) should work in most cases I suspect, leave it to the user to know what they need. Thoughts?
Comment 9 Mike Gilbert gentoo-dev 2013-05-28 18:00:26 UTC
(In reply to Matt Summers from comment #8)

I sent mail to the gentoo-python list soliciting feedback.

http://news.gmane.org/gmane.linux.gentoo.python
Comment 10 Kirill Elagin 2013-05-30 21:24:15 UTC
In the readme `pillow` is advertised to be a drop-in replacement.
There is a degree of incompatibility (like importing `Image` from the global namespace instead of `PIL`), but it's been deprecated for quite a while and also seems to be dropped from imaging 1.2 anyway.

It should be safe to rename.
Comment 11 Shubhadeep Chaudhuri 2013-06-04 22:28:28 UTC
I see that the virtual has been added to portage. So should this bug be marked resolved?
Comment 12 Mike Gilbert gentoo-dev 2013-06-04 22:52:47 UTC
Ah, yes.