diff --git a/utilix/install.sh b/utilix/install.sh new file mode 100644 index 0000000..09da4a5 --- /dev/null +++ b/utilix/install.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -e + +# List of packages +packages=( "$@" ) + +# Loop through each package +for package in "${packages[@]}" +do + # Check if the tarball exists + if [ ! -f "$package.tar.gz" ]; then + echo "Tarball $package.tar.gz not found. Skipping $package." + echo + continue + fi + + echo "Installing $package:" + + # Create a directory for the package + mkdir -p $package + + # Extract the tarball to the package directory + tar -xzf $package.tar.gz -C $package --strip-components=1 + + # Install the package in very quiet mode by -qq + pip install ./$package --user --no-deps -qq + + echo "$package installation complete." + echo +done + + +# Loop through each package +for package in "${packages[@]}" +do + # Verify the installation by importing the package + python -c "import $package; print($package.__file__); print($package.__version__)" + + echo "$package validation complete." + echo +done