tce-load -w -i squashfs-tools python3.6 expat2 libffi DESTDIR='/tmp/package' # Create package directory mkdir /tmp/source_package mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/ . /etc/init.d/tc-functions PKGDIR=/tmp/`getMajorVer`.x/`getBuild` mkdir -p $PKGDIR/tar.gz $PKGDIR/tcz # Download package cd /tmp/source_package wget https://github.com/jmespath/jmespath.py/archive/0.10.0.tar.gz # Create python3.6-jmespath.tcz tar xzvf 0.10.0.tar.gz cd jmespath.py-0.10.0/ python3 setup.py bdist_egg mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/ mkidr -p $DESTDIR/usr/local/lib/python3.6/site-packages/jmespath-0.10.0-py3.6.egg/jmespath cp -r build/lib/jmespath/ $DESTDIR/usr/local/lib/python3.6/site-packages/jmespath-0.10.0-py3.6.egg/jmespath cd $DESTDIR/usr/local/lib/python3.6/site-packages/ ln -s jmespath-0.10.0-py3.6.egg/jmespath/ . cd /tmp/source_package/jmespath.py-0.10.0/ mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/jmespath-0.10.0-py3.6.egg/EGG-INFO cp jmespath.egg-info/* $DESTDIR/usr/local/lib/python3.6/site-packages/jmespath-0.10.0-py3.6.egg/EGG-INFO cd $DESTDIR tar -czf $PKGDIR/tar.gz/python3.6-jmespath.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/python3.6-jmespath.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/python3.6-jmespath.tcz.list cd $PKGDIR/tcz md5sum python3.6-jmespath.tcz > python3.6-jmespath.tcz.md5.txt echo -e "python3.6.tcz" > python3.6-jmespath.tcz.dep # Clean-up cd /tmp rm -rf $DESTDIR rm -rf /tmp/source_package/