Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: crakerjac on January 16, 2017, 10:18:39 AM

Title: Add Python Imaging Library (PIL) to repo
Post by: crakerjac on January 16, 2017, 10:18:39 AM
I'm trying to set up libmgr to integrate into pyTivo on my Pi.  When I try to start the service, libmgr is looking for a Python Imaging Library (PIL). I've found source code for it and have tried building it myself... But I'm having no luck (keep getting limits.h file not found as a python include).  Can someone help me out?  Either point me to what I'm doing wrong or include it in the repo?

http://tinycorelinux.net/tce/src/pil/
Title: Re: Add Python Imaging Library (PIL) to repo
Post by: Rich on January 16, 2017, 02:02:05 PM
Hi crakerjac
Did you install the tool chain for compiling? It will be either  compile-essentials.tcz  or  compiletc.tcz.
Title: Re: Add Python Imaging Library (PIL) to repo
Post by: crakerjac on January 16, 2017, 02:42:35 PM
Thanks Rich!  That's exactly what I was missing.

One quick follow-up question.  After I install PIL, the installer throws some library files in /usr/local/lib/python2.7/site-packages/PIL... Does that path needed to be added to the persistent storage (.filetool.list), or, more specifically, how do I make sure I don't lose these changes after boot?
Title: Re: Add Python Imaging Library (PIL) to repo
Post by: Misalf on January 16, 2017, 02:46:24 PM
Hi crakerjac,
you could add any files to your backup, but more appropriately is to create an extension out of your build:
http://wiki.tinycorelinux.net/wiki:creating_extensions