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