WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python evdev for picore  (Read 2425 times)

Offline foxsam

  • Newbie
  • *
  • Posts: 12
python evdev for picore
« on: May 02, 2019, 10:02:33 AM »
Is there a package that has python evdev for the pi? I searched and did not find for pi only for x86_64. If I do install it using pip what is the minumum I need to save so I can
Code: [Select]
import evdev??
Thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11670
Re: python evdev for picore
« Reply #1 on: May 02, 2019, 11:23:19 AM »
Hi foxsam
There's a build script here:
http://tinycorelinux.net/8.x/x86_64/tcz/src/python3.6-evdev/
It doesn't appear very complicated.

Offline foxsam

  • Newbie
  • *
  • Posts: 12
Re: python evdev for picore
« Reply #2 on: May 02, 2019, 11:57:36 AM »
Its not. I wanted to avoid installing (loading temporarily) compiletc and python-dev because I use my pi for other things and didn't want to spend all the resources on compiling something that there is a package already.

I just used pip (in a venv) and pip install evdev and now its there.

My question now is what is the minimum I need to keep from the (venv)\bin\ directory to be able to use evdev and erase the rest?

Offline mocore

  • Hero Member
  • *****
  • Posts: 649
  • ~.~
Re: python evdev for picore
« Reply #3 on: May 02, 2019, 05:16:51 PM »
My question now is what is the minimum I need to keep from the (venv)\bin\ directory to be able to use evdev and erase the rest?
my guess would be more or less what is listed in python3.6-evdev.tcz.list

http://tinycorelinux.net/8.x/x86_64/tcz/python3.6-evdev.tcz.list

    [EDIT]: Corrected link. Changed  hzzp  to  http.  Rich
« Last Edit: May 02, 2019, 08:49:07 PM by Rich »