mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 15:20:16 +00:00
pythonbrew-install script accept Python-2.7
This commit is contained in:
+6
-2
@@ -45,13 +45,13 @@ for PYTHON in $PYTHONS ; do
|
||||
PYTHON_VERSION=${PYTHON_VERSION/"Python "/""}
|
||||
PYTHON_VERSION_S=`echo $PYTHON_VERSION | sed -e "s/\(^[[:digit:]]\{1,\}.[[:digit:]]\{1,\}\).*/\1/"`
|
||||
|
||||
if [[ $PYTHON_VERSION_S = "2.4" ]] || [[ $PYTHON_VERSION_S = "2.5" ]] || [[ $PYTHON_VERSION_S = "2.6" ]] ; then
|
||||
if [[ $PYTHON_VERSION_S = "2.4" ]] || [[ $PYTHON_VERSION_S = "2.5" ]] || [[ $PYTHON_VERSION_S = "2.6" ]] || [[ $PYTHON_VERSION_S = "2.7" ]] ; then
|
||||
PYTHON_FOUND='1'
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [[ $PYTHON_FOUND != '1' ]] ; then
|
||||
echo "pythonbrew required Python (2.4, 2.5 or 2.6)."
|
||||
echo "pythonbrew required Python (2.4, 2.5, 2.6 or 2.7)."
|
||||
#TODO Installing python.
|
||||
exit
|
||||
fi
|
||||
@@ -63,6 +63,10 @@ fi
|
||||
PATH_DISTS="$ROOT/dists"
|
||||
|
||||
STABLE_VERSION=`curl -skL https://github.com/utahta/pythonbrew/raw/master/stable-version.txt`
|
||||
if [[ $STABLE_VERSION = "" ]] ; then
|
||||
echo 'Could not get stable-version of pythonbrew.'
|
||||
exit 1
|
||||
fi
|
||||
TEMP_FILE="pythonbrew-$STABLE_VERSION"
|
||||
TEMP_TARBALL="$TEMP_FILE.tar.gz"
|
||||
DOWNLOAD_URL="http://pypi.python.org/packages/source/p/pythonbrew/$TEMP_TARBALL"
|
||||
|
||||
@@ -10,7 +10,7 @@ setup(name='pythonbrew',
|
||||
description="Manage python installations in your $HOME",
|
||||
long_description=long_description,
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Topic :: Software Development :: Build Tools',
|
||||
|
||||
@@ -5,6 +5,7 @@ class InstallOptions(object):
|
||||
configure = ""
|
||||
no_setuptools = False
|
||||
alias = None
|
||||
jobs = 2
|
||||
|
||||
def test_install():
|
||||
from pythonbrew.commands.install import InstallCommand
|
||||
|
||||
Reference in New Issue
Block a user