mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 23:30:18 +00:00
Added config.cfg
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
PATH_ROOT="@ROOT@"
|
||||
PATH_ETC="$PATH_ROOT/etc"
|
||||
|
||||
__pythonbrew_set_default()
|
||||
{
|
||||
PATH_PYTHONBREW="$PATH_ROOT/bin"
|
||||
}
|
||||
|
||||
__pythonbrew_set_path()
|
||||
{
|
||||
PATH_WITHOUT_PYTHONBREW=$(printf $PATH | awk -v RS=: -v ORS=: "/${PATH_ROOT//\//\/}/ {next} {print}" | sed -e 's#:$##')
|
||||
export PATH=$PATH_PYTHONBREW:$PATH_WITHOUT_PYTHONBREW
|
||||
}
|
||||
|
||||
__pythonbrew_set_temp_path()
|
||||
{
|
||||
if [[ -s "$PATH_ETC/temp" ]] ; then
|
||||
source "$PATH_ETC/temp"
|
||||
else
|
||||
__pythonbrew_set_default
|
||||
fi
|
||||
__pythonbrew_set_path
|
||||
}
|
||||
|
||||
__pythonbrew_set_current_path()
|
||||
{
|
||||
if [[ -s "$PATH_ETC/current" ]] ; then
|
||||
source "$PATH_ETC/current"
|
||||
else
|
||||
__pythonbrew_set_default
|
||||
fi
|
||||
__pythonbrew_set_path
|
||||
}
|
||||
|
||||
__pythonbrew_reload()
|
||||
{
|
||||
[[ -s "$PATH_ETC/bashrc" ]] && source "$PATH_ETC/bashrc"
|
||||
}
|
||||
|
||||
__pythonbrew_use()
|
||||
{
|
||||
command pythonbrew "$@"
|
||||
[[ $? == 0 ]] && __pythonbrew_set_temp_path
|
||||
}
|
||||
|
||||
__pythonbrew_switch()
|
||||
{
|
||||
command pythonbrew "$@"
|
||||
[[ $? == 0 ]] && __pythonbrew_set_current_path
|
||||
}
|
||||
|
||||
__pythonbrew_off()
|
||||
{
|
||||
command pythonbrew "$@"
|
||||
[[ $? == 0 ]] && __pythonbrew_set_current_path
|
||||
}
|
||||
|
||||
__pythonbrew_update()
|
||||
{
|
||||
command pythonbrew "$@"
|
||||
[[ $? == 0 ]] && __pythonbrew_reload
|
||||
}
|
||||
|
||||
__pythonbrew_find_command()
|
||||
{
|
||||
command_name=""
|
||||
for arg in "$@" ; do
|
||||
case $arg in
|
||||
--*) continue;;
|
||||
-*) continue;;
|
||||
*)
|
||||
command_name=$arg
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
pythonbrew()
|
||||
{
|
||||
__pythonbrew_find_command "$@"
|
||||
case $command_name in
|
||||
use) __pythonbrew_use "$@";;
|
||||
switch) __pythonbrew_switch "$@" ;;
|
||||
off) __pythonbrew_off "$@" ;;
|
||||
update) __pythonbrew_update "$@" ;;
|
||||
*) command pythonbrew "$@" ;;
|
||||
esac
|
||||
builtin hash -r
|
||||
}
|
||||
|
||||
pybrew()
|
||||
{
|
||||
pythonbrew "$@"
|
||||
}
|
||||
|
||||
# main
|
||||
__pythonbrew_set_current_path
|
||||
@@ -0,0 +1,165 @@
|
||||
[distribute]
|
||||
url = "http://python-distribute.org/distribute_setup.py"
|
||||
|
||||
[pythonbrew]
|
||||
head = 'http://github.com/utahta/pythonbrew/tarball/master'
|
||||
pypi = 'http://pypi.python.org/packages/source/p/pythonbrew/pythonbrew-%%s.tar.gz'
|
||||
stable-version = 'https://github.com/utahta/pythonbrew/raw/master/stable-version.txt'
|
||||
|
||||
[Python-1.5.6]
|
||||
url = http://www.python.org/ftp/python/src/py152.tgz
|
||||
latest = True
|
||||
|
||||
[Python-1.6.1]
|
||||
url = http://www.python.org/download/releases/1.6.1/Python-1.6.1.tar.gz
|
||||
latest = True
|
||||
|
||||
[Python-2.0]
|
||||
url = http://www.python.org/ftp/python/2.0/Python-2.0.tgz
|
||||
|
||||
[Python-2.0.1]
|
||||
url = http://www.python.org/ftp/python/2.0.1/Python-2.0.1.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.1]
|
||||
url = http://www.python.org/ftp/python/2.1/Python-2.1.tgz
|
||||
|
||||
[Python-2.1.1]
|
||||
url = http://www.python.org/ftp/python/2.1.1/Python-2.1.1.tgz
|
||||
|
||||
[Python-2.1.2]
|
||||
url = http://www.python.org/ftp/python/2.1.2/Python-2.1.2.tgz
|
||||
|
||||
[Python-2.1.3]
|
||||
url = http://www.python.org/ftp/python/2.1.3/Python-2.1.3.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.2]
|
||||
url = http://www.python.org/ftp/python/2.2/Python-2.2.tgz
|
||||
|
||||
[Python-2.2.1]
|
||||
url = http://www.python.org/ftp/python/2.2.1/Python-2.2.1.tgz
|
||||
|
||||
[Python-2.2.2]
|
||||
url = http://www.python.org/ftp/python/2.2.2/Python-2.2.2.tgz
|
||||
|
||||
[Python-2.2.3]
|
||||
url = http://www.python.org/ftp/python/2.2.3/Python-2.2.3.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.3]
|
||||
url = http://www.python.org/ftp/python/2.3/Python-2.3.tgz
|
||||
|
||||
[Python-2.3.1]
|
||||
url = http://www.python.org/ftp/python/2.3.1/Python-2.3.1.tgz
|
||||
|
||||
[Python-2.3.2]
|
||||
url = http://www.python.org/ftp/python/2.3.2/Python-2.3.2.tgz
|
||||
|
||||
[Python-2.3.4]
|
||||
url = http://www.python.org/ftp/python/2.3.4/Python-2.3.4.tgz
|
||||
|
||||
[Python-2.3.5]
|
||||
url = http://www.python.org/ftp/python/2.3.5/Python-2.3.5.tgz
|
||||
|
||||
[Python-2.3.6]
|
||||
url = http://www.python.org/ftp/python/2.3.6/Python-2.3.6.tgz
|
||||
|
||||
[Python-2.3.7]
|
||||
url = http://www.python.org/ftp/python/2.3.7/Python-2.3.7.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.4]
|
||||
url = http://www.python.org/ftp/python/2.4/Python-2.4.tgz
|
||||
|
||||
[Python-2.4.1]
|
||||
url = http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
|
||||
|
||||
[Python-2.4.2]
|
||||
url = http://www.python.org/ftp/python/2.4.2/Python-2.4.2.tgz
|
||||
|
||||
[Python-2.4.3]
|
||||
url = http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tgz
|
||||
|
||||
[Python-2.4.4]
|
||||
url = http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz
|
||||
|
||||
[Python-2.4.5]
|
||||
url = http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tgz
|
||||
|
||||
[Python-2.4.6]
|
||||
url = http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.5]
|
||||
url = http://www.python.org/ftp/python/2.5/Python-2.5.tgz
|
||||
|
||||
[Python-2.5.1]
|
||||
url = http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz
|
||||
|
||||
[Python-2.5.2]
|
||||
url = http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
|
||||
|
||||
[Python-2.5.3]
|
||||
url = http://www.python.org/ftp/python/2.5.3/Python-2.5.3.tgz
|
||||
|
||||
[Python-2.5.4]
|
||||
url = http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz
|
||||
|
||||
[Python-2.5.5]
|
||||
url = http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.6]
|
||||
url = http://www.python.org/ftp/python/2.6/Python-2.6.tgz
|
||||
|
||||
[Python-2.6.1]
|
||||
url = http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz
|
||||
|
||||
[Python-2.6.2]
|
||||
url = http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
|
||||
|
||||
[Python-2.6.3]
|
||||
url = http://www.python.org/ftp/python/2.6.3/Python-2.6.3.tgz
|
||||
|
||||
[Python-2.6.4]
|
||||
url = http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tgz
|
||||
|
||||
[Python-2.6.5]
|
||||
url = http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tgz
|
||||
|
||||
[Python-2.6.6]
|
||||
url = http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
|
||||
latest = True
|
||||
|
||||
[Python-2.7]
|
||||
url = http://www.python.org/ftp/python/2.7/Python-2.7.tgz
|
||||
|
||||
[Python-2.7.1]
|
||||
url = http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
|
||||
latest = True
|
||||
|
||||
[Python-3.0]
|
||||
url = http://www.python.org/ftp/python/3.0/Python-3.0.tgz
|
||||
|
||||
[Python-3.0.1]
|
||||
url = http://www.python.org/ftp/python/3.0.1/Python-3.0.1.tgz
|
||||
latest = True
|
||||
|
||||
[Python-3.1]
|
||||
url = http://www.python.org/ftp/python/3.1/Python-3.1.tgz
|
||||
|
||||
[Python-3.1.1]
|
||||
url = http://www.python.org/ftp/python/3.1.1/Python-3.1.1.tgz
|
||||
|
||||
[Python-3.1.2]
|
||||
url = http://www.python.org/ftp/python/3.1.2/Python-3.1.2.tgz
|
||||
|
||||
[Python-3.1.3]
|
||||
url = http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz
|
||||
latest = True
|
||||
|
||||
[Python-3.2]
|
||||
url = http://www.python.org/ftp/python/3.2/Python-3.2.tgz
|
||||
latest = True
|
||||
|
||||
Reference in New Issue
Block a user