ATTEMPT TO REMEDY DIRECTORY PERSISTANCE
=============================
The directory slashes were removed at the head and tail:
tc@box:~$ tail /opt/.filetool.lst
usr/local/etc/ssh/ssh_host_ed25519_key.pub
usr/local/etc/ssh/ssh_host_rsa_key
usr/local/etc/ssh/ssh_host_rsa_key.pub
usr/local/lib/python3.6/site-packages/pip
usr/local/lib/python3.6/site-packages/pip-20.0.2.dist-info
usr/local/lib/python3.6/site-packages/wheel
usr/local/lib/python3.6/site-packages/wheel-0.34.2.dist-info
usr/local/lib/python2.7/site-packages/megaio-1.3.1-py2.7.egg/megaio
usr/local/lib/python2.7/site-packages/megaio-1.3.1-py2.7.egg
then ensured that pip3 was installed:
cd /home/tc/pip3Persistent
#wget https://bootstrap.pypa.io/get-pip.py
sudo -H python3.6 get-pip.py
performed a backup:
filetool.sh -b
rebooted piCore: directories did not survive. What am I missing?
ATTEMPT TO CREATE PIP3 EXTENSION
=======================
Reinstalled pip3 with:
#mkdir cd /home/tc/pip3Persistent
cd /home/tc/pip3Persistent
#wget https://bootstrap.pypa.io/get-pip.py
sudo -H python3.6 get-pip.py
.tcz extension created and copied it to /mnt/mmcblk0p2/tce/onboot.lst
sudo cp -a /usr/local/lib/python3.6/site-packages/pip /tmp/MyPIP/usr/local/lib/python3.6/site-packages/
sudo cp -a /usr/local/lib/python3.6/site-packages/pip-20.0.2.dist-info /tmp/MyPIP/usr/local/lib/python3.6/site-packages/
sudo cp -a /usr/local/lib/python3.6/site-packages/wheel /tmp/MyPIP/usr/local/lib/python3.6/site-packages/
sudo cp -a /usr/local/lib/python3.6/site-packages/wheel-0.34.2.dist-info /tmp/MyPIP/usr/local/lib/python3.6/site-packages
cd /tmp
mksquashfs MyPIP pip3.tcz
cp pip3.tcz /mnt/mmcblk0p2/tce/onboot.lst
Rebooted piCore: directories of interest seem to be OK (persist):
tc@box:~$ ls -lt /usr/local/lib/python3.6/site-packages/
total 0
drwxr-xr-x 12 root root 480 Jan 1 1970 pip/
drwxr-xr-x 2 root root 180 Jan 1 1970 pip-20.0.2.dist-info/
drwxr-xr-x 4 root root 280 Jan 1 1970 wheel/
drwxr-xr-x 2 root root 180 Jan 1 1970 wheel-0.34.2.dist-info/
lrwxrwxrwx 1 root root 66 Jan 1 1970 README -> /tmp/tcloop/python3.6/usr/local/lib/python3.6/site-packages/README
lrwxrwxrwx 1 root root 70 Jan 1 1970 README.txt -> /tmp/tcloop/python3.6/usr/local/lib/python3.6/site-packages/README.txt
drwxr-xr-x 2 root root 40 Jan 1 1970 __pycache__/
lrwxrwxrwx 1 root root 75 Jan 1 1970 easy_install.py -> /tmp/tcloop/python3.6/usr/local/lib/python3.6/site-packages/easy_install.py
drwxr-xr-x 2 root root 200 Jan 1 1970 pip-9.0.1.dist-info/
drwxr-xr-x 5 root root 120 Jan 1 1970 pkg_resources/
drwxr-xr-x 5 root root 680 Jan 1 1970 setuptools/
drwxr-xr-x 2 root root 240 Jan 1 1970 setuptools-28.8.0.dist-info/
drwxr-xr-x 3 root root 100 Jan 1 1970 smbus2/
drwxr-xr-x 2 root root 140 Jan 1 1970 smbus2-0.3.0-py3.6.egg-info/
./pip-9.0.1.dist-info/ was removed when pip3 was installed, but it somehow is installed: maybe part of python3.tcz?
pip3 test failed.
tc@box:~$ pip3
-sh: pip3: not found
tc@box:~$ pip36
-sh: pip36: not found