Skip to content

Instantly share code, notes, and snippets.

@ozymandium
Created September 7, 2015 00:28
Show Gist options
  • Save ozymandium/d79e96d1504c4f9cbfc0 to your computer and use it in GitHub Desktop.
Save ozymandium/d79e96d1504c4f9cbfc0 to your computer and use it in GitHub Desktop.
Bash script that downloads and installs Christoph Gohlke's popular python transformations module
#!/bin/bash
tempfile="/tmp/transformations.py"
wget http://www.lfd.uci.edu/~gohlke/code/transformations.py -O $tempfile
echo "Installing to:"
for path in /usr/lib/python*; do
[ -d "${path}" ] || continue # skip any files in there
filen="${path}/transformations.py"
echo -e "\t${filen}"
cp $tempfile $filen
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment