Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: lykkedk on April 05, 2020, 01:35:37 PM
-
:) Hello here friends :)
Well, working on a DSP engine (digital sound processing) and i need the python3 websocket-client for it.
i can install it with this : tc@DSP-Player:~$ sudo pip3 install websocket-client
Everything is working then, but it does not survive reboot ofcause.
Whats the best / easiest way getting there?
Thanks; Jesper...
-
The most efficient way is to compile it and make an extension.
-
Yes, you are ofcause right.
But.
Is it okay to make a directory which contains the package(s) perhaps like:
[sudo]
mkdir /temp
cd /temp
mkdir pywebsocket
cd pywebsocket
mkdir -p usr/local/bin/python3.7/site-packages (or where they are excatly!)
(maybee split out more dirs here)
cd /temp
mksquashfs pywebsocket py_websock.tcz
Then move it to tcedir & add to .onboot.lst
Would it be okay, or bad idea?
Jesper.
-
Many python apps install easily, i.e.
$ tce-load -i compiletc python3.6-dev
$ tar xf python_package.tar.gz
$ cd python_package
$ python3.6 setup.py build
$ mkdir /tmp/pkg
$ sudo python3.6 setup.py build install --root=/tmp/pkg
Then, to make an extension:$ tce-load -i squashfs-tools
$ cd /tmp
$ sudo mksquashfs pkg/ python_package.tcz
In addition, to make things smaller, you can delete any _pycache directories before making the extension
-
Yes... look's like i could try that :)
Is there a way to see which package websocket-client the pip3 installs on the raspbian???
Better to use a know working one 8)
Jesper.
-
Usually when you use the pip install command it tells you what it is installing.
You could also use the tar.gz file here https://pypi.org/project/websocket_client/#files
-
Dear Juanito :)
Thanks for helping!.
I succesfully build and use now two self"compiled" websocket & six .tcz's
Jesper.