Is there a way to add Python library to the snap by inserting the files manually to python libraries folder


#1

How can I insert python library files (I don’t have the pre-compiled ones) into my snap.

My files are located in /usr/local/lib/python2.7/dist-packages/ and they are pr-installed on the device.

One is ending with .egg-info and there is folder that contains .so, __init__.py, __init__.pyc .

I have tried inserting them inside the override-build: | part with the command
sudo cp -r libraryFiles/* /usr/local/lib/python2.7/dist-packages/ wich didn’t work.

I can’t get the python code because it is pre-installed on the device.
It is based on this library and changed by the company for the NanoPi Duo2 (they didn’t released the changed code for the NanoPi Duo2 to the public).