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/boto/botocore/archive/1.17.59.tar.gz # Create python3.6-botocore.tcz tar xzvf 1.17.59.tar.gz cd botocore-1.17.59/ python3 setup.py bdist_egg mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/ mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/botocore-1.17.59-py3.6.egg/ cp -r build/lib/botocore/ $DESTDIR/usr/local/lib/python3.6/site-packages/botocore-1.17.59-py3.6.egg/ cd $DESTDIR/usr/local/lib/python3.6/site-packages/ ln -s botocore-1.17.59-py3.6.egg/botocore/ . cd /tmp/source_package/botocore-1.17.59/ mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/botocore-1.17.59-py3.6.egg/EGG-INFO cp botocore.egg-info/* $DESTDIR/usr/local/lib/python3.6/site-packages/botocore-1.17.59-py3.6.egg/EGG-INFO cd $DESTDIR tar -czf $PKGDIR/tar.gz/python3.6-botocore.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/python3.6-botocore.tcz -all-root -info find $DESTDIR -not -type d | sed -e "s#^${DESTDIR}##" > $PKGDIR/tcz/python3.6-botocore.tcz.list cd $PKGDIR/tcz md5sum python3.6-botocore.tcz > python3.6-botocore.tcz.md5.txt echo -e "python3.6.tcz\npython3.6-docutils.tcz\npython3.6-dateutil.tcz\npython3.6-jmespath.tcz" > python3.6-botocore.tcz.dep # Clean-up cd /tmp rm -rf $DESTDIR rm -rf /tmp/source_package/