View Single Post
Old 10-18-2016, 06:32 AM   #1
kdusr
Connoisseur
kdusr began at the beginning.
 
kdusr's Avatar
 
Posts: 85
Karma: 13
Join Date: Oct 2016
Location: Mars
Device: KV,KOA2,PW5
Thumbs up run pypy on kindle

last week I jailbreaked my KV, and installed python on it, ( https://www.mobileread.com/forums/sho...d.php?t=153930 )

wrote a test script with UI and touch keyboard , it works petty good on kindle, but a little bit slow

then I try to install pypy on kindle, because it 7-10 times faster than standard python and new version of pypy support Tkinter UI module

there are three diff version of pypy for ARM cpu,
http://pypy.org/download.html
ARM Hardfloat Linux binary (ARMHF/gnueabihf, tar.bz2, Raspbian) (
ARM Hardfloat Linux binary (ARMHF/gnueabihf, tar.bz2, Ubuntu Raring)
ARM Softfloat Linux binary (ARMEL/gnueabi, tar.bz2, Ubuntu Precise)

i do not know which version can be matched with kindle,
then I tried all of them, but do not work

what i did:
download pypy package, unzip to /mnt/us/pypy folder, add a python env file in the folder
python env setting as follow:
#!/bin/sh
export PATH=/mnt/us/pypy/usr/bin/:$PATH

then
try to run ./mnt/us/pypy/bin/pypy
got error, can not find pypy

pypy folder structure :

pypy
....|------bin
............|------pypy
............|------libpypy-c.so
....|-------lib_pypy
................|..blalala
....|-------lib-python
................|..blalbla
....|-------site-packages
....|-------include

anyone can give me a hint? how to make pypy running on kindle, thanks!

Last edited by kdusr; 10-18-2016 at 06:35 AM.
kdusr is offline   Reply With Quote