WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Add Python Imaging Library (PIL) to repo  (Read 2306 times)

Offline crakerjac

  • Newbie
  • *
  • Posts: 4
Add Python Imaging Library (PIL) to repo
« 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/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Add Python Imaging Library (PIL) to repo
« Reply #1 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.

Offline crakerjac

  • Newbie
  • *
  • Posts: 4
Re: Add Python Imaging Library (PIL) to repo
« Reply #2 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?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Add Python Imaging Library (PIL) to repo
« Reply #3 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
Download a copy and keep it handy: Core book ;)