Created
April 16, 2018 19:11
-
-
Save mzpqnxow/68250412723ffcfe9f8c04756d045fb6 to your computer and use it in GitHub Desktop.
Fix pybuild23 issue introduced by pip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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