Skip to content

Instantly share code, notes, and snippets.

@mzpqnxow
Created April 16, 2018 19:11
Show Gist options
  • Save mzpqnxow/68250412723ffcfe9f8c04756d045fb6 to your computer and use it in GitHub Desktop.
Save mzpqnxow/68250412723ffcfe9f8c04756d045fb6 to your computer and use it in GitHub Desktop.
Fix pybuild23 issue introduced by pip
#!/bin/bash
#
# Fix for issue caused by pip10 upgrade
# Run this script while in any pybuil23 based project
# directory to fix
#
function die() {
echo "$1"
echo "Exiting ..."
exit 1
}
[[ -d .git ]] || die "Current directory is not a git repo"
[[ -f pybuild ]] || die "Project has no pybuild file"
[[ -d pybuild23 ]] && die "Project has pybuild23 in root, this is not right"
git clone https://github.com/mzpqnxow/pybuild23 && \
cp pybuild23/pybuild pybuild && \
rm -rf packages && \
cp -r pybuild23/packages . && \
rm -rf pybuild23 &&
git add packages &&
git commit -m 'Hotfix for pybuild23 pip 10.0 incident ...' pybuild packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment