%general-entities; ]> Building pythonhosted.org Files pythonhosted Introduction to pythonhosted.org Files This section is for user convenience and is optional. It can be used to fetch and install all the pythonhosted.org module packages below in two convenient scripts. &lfs112_checked; Package Information Download (HTTP): &pythonhosted-download-http; Download (FTP): Download MD5 sum: &pythonhosted-md5sum; Download size: &pythonhosted-size; Estimated disk space required: &pythonhosted-buildsize; Estimated build time: &pythonhosted-time; Pythonhosted.org Dependencies Required TBD Recommended TBD Optional TBD Downloading All Pythonhosted Module Files The easiest way to install the modules from the files.pythonhosted.org site is to run a script to install them all at once. The order of building files is important due to internal dependencies. First, create the list of files in the proper order as follows: cat > pythonhosted-files.md5 << "EOF" ]]> EOF Next, create a script to fetch the files: cat > get-pythonhosted-files.sh << "EOF" #! /bin/bash PYTHONHOSTED=https://files.pythonhosted.org/packages/source mkdir -p pythonhosted cd pythonhosted for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}') do # Don't try to get a package that is already present [ -e $package ] && continue basename=$(echo $package|sed 's/-[[:digit:]].*$//') basechar=$(echo $basename|cut -c 1) url=$PYTHONHOSTED/$basechar/$basename/$package wget $url done EOF Run the script and check the files: bash get-pythonhosted-files.sh && md5sum -c ../pythonhosted-files.md5 Installation of Pythonhosted Modules Set up a script to install all of the packages: cat > install-pythonhosted-files.sh << "EOF" #! /bin/bash cd pythonhosted for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}') do name=$(echo $package|sed 's/-[[:digit:]].*$//') # Don't try to install the package if it already installed installed=$(pip3 show $name 2> /dev/null | grep Version:) unset version if [ -n $installed ]; then version=$(echo $installed | awk '{print $2}') fi if [ -n "$version" ]; then if [ ! $(echo $package | grep -q $version) ]; then echo $package is already installed continue fi fi # Now install the package packagedir=${package%.tar.?z*} rm -rf $packagedir tar -xf $package pushd $packagedir pip3 wheel -w dist --no-build-isolation --no-deps $PWD sudo pip3 install --no-index --find-links dist --no-cache-dir \ --no-user --upgrade $name popd done Now run the script to install the files. If the script is run multiple times, it will not try to reinstall the modules unless the version in the .md5 file has been changed. bash install-pythonhosted-files.sh Some of the packages have test procedures. See the individual package sections below to run any desired tests. Contents See the contents of the individual package sections below. ]]>