tce-load -w -i squashfs-tools python3.6 expat2 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/sam-washington/requests-aws4auth/archive/0.9.tar.gz # Create python3.6-requests-aws4auth.tcz tar xzvf 0.9.tar.gz cd requests-aws4auth-0.9/ python3 setup.py bdist_egg cp -r build/lib/requests_aws4auth/ $DESTDIR/usr/local/lib/python3.6/site-packages/requests_aws4auth-0.9-py3.6.egg cd $DESTDIR/usr/local/lib/python3.6/site-packages/ ln -s requests_aws4auth-0.9-py3.6.egg/requests_aws4auth/ requests_aws4auth cd /tmp/source_package/requests-aws4auth-0.9/ mkdir -p $DESTDIR/usr/local/lib/python3.6/site-packages/requests_aws4auth-0.9-py3.6.egg/EGG-INFO cp requests_aws4auth.egg-info/* $DESTDIR/usr/local/lib/python3.6/site-packages/requests_aws4auth-0.9-py3.6.egg/EGG-INFO ls $DESTDIR/usr/local/lib/python3.6/site-packages/requests_aws4auth-0.9-py3.6.egg/EGG-INFO cd $DESTDIR rm -fr usr/local/lib/python3.6/site-packages/requests_aws4auth-0.9-py3.6.egg/requests_aws4auth/test/ tar -czf $PKGDIR/tar.gz/python3.6-requests-aws4auth.tcz.tar.gz * mksquashfs $DESTDIR $PKGDIR/tcz/python3.6-requests-aws4auth.tcz -all-root -info cd $PKGDIR/tcz md5sum python3.6-requests-aws4auth.tcz > python3.6-requests-aws4auth.tcz.md5.txt echo -e "python3.6-requests.tcz\npython3.6-six.tcz" > python3.6-requests-aws4auth.tcz.dep # Clean-up cd /tmp rm -rf $DESTDIR rm -rf /tmp/source_package/