WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline foxsam

  • WikiUser
  • *
  • Posts: 12
python evdev for picore
« on: May 02, 2019, 07: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

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6599
Re: python evdev for picore
« Reply #1 on: May 02, 2019, 08: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

  • WikiUser
  • *
  • Posts: 12
Re: python evdev for picore
« Reply #2 on: May 02, 2019, 08: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

  • Full Member
  • ***
  • Posts: 215
Re: python evdev for picore
« Reply #3 on: May 02, 2019, 02: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, 05:49:07 PM by Rich »