Skip to content

Commit cdb92c3

Browse files
committed
pythonbrew-install script accept Python-2.7
1 parent bb24bd5 commit cdb92c3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

pythonbrew-install

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ for PYTHON in $PYTHONS ; do
4545
PYTHON_VERSION=${PYTHON_VERSION/"Python "/""}
4646
PYTHON_VERSION_S=`echo $PYTHON_VERSION | sed -e "s/\(^[[:digit:]]\{1,\}.[[:digit:]]\{1,\}\).*/\1/"`
4747

48-
if [[ $PYTHON_VERSION_S = "2.4" ]] || [[ $PYTHON_VERSION_S = "2.5" ]] || [[ $PYTHON_VERSION_S = "2.6" ]] ; then
48+
if [[ $PYTHON_VERSION_S = "2.4" ]] || [[ $PYTHON_VERSION_S = "2.5" ]] || [[ $PYTHON_VERSION_S = "2.6" ]] || [[ $PYTHON_VERSION_S = "2.7" ]] ; then
4949
PYTHON_FOUND='1'
5050
break
5151
fi
5252
done
5353
if [[ $PYTHON_FOUND != '1' ]] ; then
54-
echo "pythonbrew required Python (2.4, 2.5 or 2.6)."
54+
echo "pythonbrew required Python (2.4, 2.5, 2.6 or 2.7)."
5555
#TODO Installing python.
5656
exit
5757
fi
@@ -63,6 +63,10 @@ fi
6363
PATH_DISTS="$ROOT/dists"
6464

6565
STABLE_VERSION=`curl -skL https://github.com/utahta/pythonbrew/raw/master/stable-version.txt`
66+
if [[ $STABLE_VERSION = "" ]] ; then
67+
echo 'Could not get stable-version of pythonbrew.'
68+
exit 1
69+
fi
6670
TEMP_FILE="pythonbrew-$STABLE_VERSION"
6771
TEMP_TARBALL="$TEMP_FILE.tar.gz"
6872
DOWNLOAD_URL="http://pypi.python.org/packages/source/p/pythonbrew/$TEMP_TARBALL"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
description="Manage python installations in your $HOME",
1111
long_description=long_description,
1212
classifiers=[
13-
'Development Status :: 4 - Beta',
13+
'Development Status :: 5 - Production/Stable',
1414
'Intended Audience :: Developers',
1515
'License :: OSI Approved :: MIT License',
1616
'Topic :: Software Development :: Build Tools',

tests/test_04_install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class InstallOptions(object):
55
configure = ""
66
no_setuptools = False
77
alias = None
8+
jobs = 2
89

910
def test_install():
1011
from pythonbrew.commands.install import InstallCommand

0 commit comments

Comments
 (0)