#!/bin/sh
#For compiling pygments in python 3.6
tce-load -i compiletc python3.6

git clone https://github.com/pygments/pygments
cd pygments
python3.6 setup.py build
sudo python3.6 setup.py install --root=/tmp/pygments
cd /tmp/pygments
sudo find . -not -type 'd' | sed '/__pycache__/d' | tee /tmp/temppygments
for i in $(cat /tmp/temppygments)
do
mkdir /tmp/python3.6-pygments
cp "$i" /tmp/python3.6-pygments
done
sudo mksquashfs python3.6-pygments/ python3.6-pygments.tcz