#!/bin/sh git clone https://github.com/pallets/cachelib python3.6 setup.py build sudo python3.6 setup.py install --root=/tmp/cachelib cd /tmp/cachelib sudo find . -not -type 'd' | grep __pycache__ | tee /tmp/tempcachelib for i in `cat /tmp/tempcachelib` do sudo rm -rf $i done cd /tmp sudo mksquashfs cachelib/ python3.6-cachelib.tcz