You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Administrivia
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PYTHON_VERSION=3.7.12
|
PYTHON_VERSION=3.7.12
|
||||||
|
|
||||||
|
function checkout_version {
|
||||||
|
local repo=$1
|
||||||
|
version=${2:-master}
|
||||||
|
echo Checking out $version on $repo ...
|
||||||
|
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
|
||||||
|
git pull
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
# FIXME put some of the below in a common routine
|
# FIXME put some of the below in a common routine
|
||||||
function finish {
|
function finish {
|
||||||
cd $owd
|
cd $owd
|
||||||
@@ -16,8 +25,7 @@ fi
|
|||||||
mydir=$(dirname $bs)
|
mydir=$(dirname $bs)
|
||||||
fulldir=$(readlink -f $mydir)
|
fulldir=$(readlink -f $mydir)
|
||||||
cd $fulldir/..
|
cd $fulldir/..
|
||||||
(cd ../python-spark && git checkout master && pyenv local $PYTHON_VERSION) && git pull && \
|
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis &&
|
||||||
(cd ../python-xdis && git checkout master && pyenv local $PYTHON_VERSION) && git pull && \
|
checkout_version python-uncompyle6)
|
||||||
git checkout master && pyenv local $PYTHON_VERSION && git pull
|
|
||||||
cd $owd
|
cd $owd
|
||||||
rm -v */.python-version >/dev/null 2>&1 || true
|
rm -v */.python-version >/dev/null 2>&1 || true
|
||||||
|
@@ -1,6 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
PYTHON_VERSION=2.4.6
|
PYTHON_VERSION=2.4.6
|
||||||
|
|
||||||
|
function checkout_version {
|
||||||
|
local repo=$1
|
||||||
|
version=${2:-python-2.4}
|
||||||
|
echo Checking out $version.4 on $repo ...
|
||||||
|
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
|
||||||
|
git pull
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
owd=$(pwd)
|
owd=$(pwd)
|
||||||
bs=${BASH_SOURCE[0]}
|
bs=${BASH_SOURCE[0]}
|
||||||
if [[ $0 == $bs ]] ; then
|
if [[ $0 == $bs ]] ; then
|
||||||
@@ -9,10 +18,7 @@ if [[ $0 == $bs ]] ; then
|
|||||||
fi
|
fi
|
||||||
mydir=$(dirname $bs)
|
mydir=$(dirname $bs)
|
||||||
fulldir=$(readlink -f $mydir)
|
fulldir=$(readlink -f $mydir)
|
||||||
cd $fulldir/..
|
(cd $fulldir/.. && checkout_version python-spark && checkout_version python-xdis python-2.4-to-2.7 &&
|
||||||
(cd ../python-spark && git checkout python-2.4 && pyenv local $PYTHON_VERSION) && git pull && \
|
checkout_version python-uncompyle6)
|
||||||
(cd ../python-xdis && . ./admin-tools/setup-python-2.4.sh) && \
|
|
||||||
git checkout python-2.4 && pyenv local $PYTHON_VERSION && git pull
|
|
||||||
cd $owd
|
cd $owd
|
||||||
rm -v */.python-version || true
|
rm -v */.python-version || true
|
||||||
pyenv local $PYTHON_VERSION
|
|
||||||
|
@@ -2,13 +2,33 @@
|
|||||||
PYTHON_VERSION=3.3.7
|
PYTHON_VERSION=3.3.7
|
||||||
pyenv local $PYTHON_VERSION
|
pyenv local $PYTHON_VERSION
|
||||||
|
|
||||||
|
# FIXME put some of the below in a common routine
|
||||||
|
function checkout_version {
|
||||||
|
local repo=$1
|
||||||
|
version=${2:-python-3.3-to-3.5}
|
||||||
|
echo Checking out $version on $repo ...
|
||||||
|
(cd ../$repo && git checkout $version && pyenv local $PYTHON_VERSION) && \
|
||||||
|
git pull
|
||||||
|
return $?
|
||||||
|
}
|
||||||
|
|
||||||
|
function finish {
|
||||||
|
cd $owd
|
||||||
|
}
|
||||||
|
|
||||||
|
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
|
||||||
owd=$(pwd)
|
owd=$(pwd)
|
||||||
bs=${BASH_SOURCE[0]}
|
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)
|
mydir=$(dirname $bs)
|
||||||
fulldir=$(readlink -f $mydir)
|
fulldir=$(readlink -f $mydir)
|
||||||
cd $fulldir/..
|
cd $fulldir/..
|
||||||
(cd ../python-xdis && ./admin-tools/setup-python-3.3.sh)
|
(cd $fulldir/.. && checkout_version python-spark master && checkout_version python-xdis &&
|
||||||
|
checkout_version python-uncompyle6)
|
||||||
cd $owd
|
cd $owd
|
||||||
rm -v */.python-version || true
|
rm -v */.python-version || true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user