You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
24 lines
669 B
Bash
Executable File
24 lines
669 B
Bash
Executable File
#!/bin/bash
|
|
PYTHON_VERSION=3.7.5
|
|
|
|
# FIXME put some of the below in a common routine
|
|
function finish {
|
|
cd $owd
|
|
}
|
|
|
|
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
|
|
owd=$(pwd)
|
|
bs=${BASH_SOURCE[0]}
|
|
if [[ $0 == $bs ]] ; then
|
|
echo "This script should be *sourced* rather than run directly through bash"
|
|
exit 1
|
|
fi
|
|
mydir=$(dirname $bs)
|
|
fulldir=$(readlink -f $mydir)
|
|
cd $fulldir/..
|
|
(cd ../python-spark && git checkout master && pyenv local $PYTHON_VERSION) && git pull && \
|
|
(cd ../python-xdis && git checkout master && pyenv local $PYTHON_VERSION) && git pull && \
|
|
git checkout master && pyenv local $PYTHON_VERSION && git pull
|
|
cd $owd
|
|
rm -v */.python-version || true
|