[GRASS-dev] PIL needs to be a GRASS dependency

Michael Barton Michael.Barton at asu.edu
Wed Nov 23 01:03:04 EST 2011

Thanks William.

Your package makes this work OK. I had only been able to install PIL for Python 2.7, but had compiled GRASS 7 with Python 2.6. This left the cartographic composer only partly workable. This could be a problem for others. These extra python packages not only need to be installed, but need to be installed for whatever version  of Python that GRASS is compiled with. This is a similar issue to what we ran into with wxPython. I don't know how this is handled in Windows, but could potentially be a problem there too. 

I'm not sure how to best handle this.

C. Michael Barton
Director, Center for Social Dynamics & Complexity 
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 22, 2011, at 9:05 PM, William Kyngesburye wrote:

> Well, I have Mac PIL and Numpy packages.  I don't think Python modules are something you should be bundling in GRASS binaries, since users may already have them installed.
> If the GRASS installer (at least on OS X) could check for dependencies it wouldn't such a problem, since GRASS would simply not install and tell you what is missing.  That's been a low priority on my list to do for a while - add some mechanism for extending the installer creation in the bindist target, to allow packagers to specify dependency checks (it's not something that's easy or practical to do automatically based on configured dependencies).
> On Nov 22, 2011, at 9:16 PM, Michael Barton wrote:
>> Since the Python Imaging Library (PIL) is needed to fully use the cartographic composer, this needs to be a dependency of GRASS, just like numpy. Since both of these packages do not come with the standard Python distribution, it would be good if we could package/bundle them in binary distributions. Otherwise, stuff will not work. This is needed for GRASS 6.4 as well as GRASS 7. I'm not sure what is needed for this to happen, but it will be helpful to users (and very frustrating to them if not there).
>> Michael
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> "Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings.  And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....
> - the wisdom of Tarzan

More information about the grass-dev mailing list