Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-28-2021, 01:21 AM   #1
Amias
Member
Amias began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Apr 2021
Device: KPW4
How to setup python-webkitgtk and numpy environment in kindle?

How can I set up the environment so I can test and write some apps in kindle?
Amias is offline   Reply With Quote
Old 05-12-2021, 12:21 AM   #2
buyifan43
Member
buyifan43 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2021
Device: KPW 4 and KT2
I tried to install pip on kindle with python3.9, however it seems that HOME variables are very hard to add because everytime I restart kterm I need to do it again, typing those longlong commands.
buyifan43 is offline   Reply With Quote
Advert
Old 05-12-2021, 11:18 AM   #3
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 11,773
Karma: 21070087
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O & Forma
I've never done that on Kindle, but I see no reason why this wouldn't behave, as the builds are essentially identical:

Code:
 139   │ # NOTE: Document pip usage... (*NOT* recommended!)
 140   │ if [ "${COMPILE_PY3}" = "true" ] ; then
 141   │     # NOTE: Technically available on Python 2.7, too, but let's not encourage that...
 142   │     echo ""
 143   │     echo "If you *absolutely* need to, pip can be bootstrapped and updated."
 144   │     echo "This is *NOT* recommended, as it will only be able to install pure-python modules (as there is no available C/C++ compiler)."
 145   │     echo "In addition to that, any extra third-party modules will be *lost* during a Python update!"
 146   │     echo "As for the user site-packages, remember that by default HOME is either in a tmpfs, or, worse, the rootfs..."
 147   │     echo "TL;DR: Don't do this unless you *know* what you're doing!"
 148   │     echo ""
 149   │     echo "That said..."
 150   │     echo "Boostrapping pip:"
 151   │     echo "python${PY3VER} -m ensurepip"
 152   │     echo "Updating pip:"
 153   │     echo "${PY3HOME}/bin/pip${PY3VER} install -U setuptools pip"
 154   │     echo "Symlinking pip into PATH"
 155   │     echo "ln -sf ${PY3HOME}/bin/pip /usr/bin/pip"
 156   │     echo ""
 157   │ fi
(That's from my Kobo Python distrib).
NiLuJe is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 3.9 Numpy DennisH Kindle Developer's Corner 2 04-07-2021 04:11 AM
Is the environment Python 2 or Python 3? halloleo Library Management 11 04-07-2020 03:47 AM
How to setup Python debug environment for Calibre Recipes huang5307 Recipes 9 03-03-2016 02:35 PM
OSX Python environment DiapDealer Development 1 08-03-2014 11:10 PM
setup development environment JeffElkins Calibre 21 10-22-2008 03:25 PM


All times are GMT -4. The time now is 02:02 PM.


MobileRead.com is a privately owned, operated and funded community.