# Installing setuptools-7.0.tar.gz # Prep Enviroment export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig mkdir -p /tmp/package # Install build/install only dependencies tce-load -wi compiletc.tcz tce-load -wi squashfs-tools-4.x.tcz tce-load -wi python-dev.tcz tce-load -wi submitqc.tcz # Install required dependencies tce-load -wi python.tcz # Install download dependencie tce-load -wi wget # !!!!!!!!!!!!! May need to reboot at this stage, if following wget command does not work # Download source wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.tar.gz # Extract tar -xzf setuptools-7.0.tar.gz # Enter source dir cd setuptools-7.0 # Build Command python setup.py build # Install Command python setup.py install --prefix=/usr/local --root=/tmp/package # clean up extracted source files cd .. rm -rf setuptools-7.0 # strip /tmp/package cd /tmp/package find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null ### Create base tcz cd /tmp mksquashfs package python-setuptools.tcz cd package find usr -not -type d > ../python-setuptools.tcz.list cd .. md5sum python-setuptools.tcz > python-setuptools.tcz.md5.txt touch python-setuptools.tcz.dep echo python.tcz > python-setuptools.tcz.dep # info based on template I had, detail's filled in manually with nano # Clean up /tmp/package folder rm -rf package # Prep for submitqc test mkdir python-setuptools mv python-setuptools.tcz* python-setuptools cd python-setuptools sudo submitqc ## NOTE without correct info file submitqc will generate no info file related errors. # create tarbal cd .. tar -zcf python-setuptools.tar.gz python-setuptools # bcrypt, use password tinycore when prompted bcrypt python-setuptools.tar.gz # Move python-setuptools folder and bcrypt file to storeage pending submission for approval mv python-setuptools* /mnt/hda1/tcz