|
@@ -53,27 +53,29 @@ class Installer:
|
|
|
#
|
|
|
# Python
|
|
|
#
|
|
|
+ self.__run_command("curl -L http://bitbucket.org/pypy/pypy/downloads/pypy-2.0.2-linux64.tar.bz2 | tar xj")
|
|
|
+ self.__run_command("curl http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz | tar xvz")
|
|
|
+ self.__run_command("./configure --prefix=$HOME/FrameworkBenchmarks/installs/python-2.7.5", cwd="Python-2.7.5")
|
|
|
+ self.__run_command("make -j", cwd="Python-2.7.5")
|
|
|
+ self.__run_command("make install", cwd="Python-2.7.5")
|
|
|
+
|
|
|
+ self.__run_command("curl https://pypi.python.org/packages/source/d/distribute/distribute-0.6.45.tar.gz | tar xvz")
|
|
|
+ self.__run_command("../pypy-2.0/bin/pypy setup.py install", cwd="distribute-0.6.45")
|
|
|
+ self.__run_command("python setup.py install", cwd="distribute-0.6.45")
|
|
|
|
|
|
- self.__run_command("curl -L http://bitbucket.org/pypy/pypy/downloads/pypy-2.0-linux64.tar.bz2 | tar xvj")
|
|
|
- self.__run_command("curl http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz | tar xvz")
|
|
|
- self.__run_command("./configure", cwd="Python-2.7.4")
|
|
|
- self.__run_command("make -j", cwd="Python-2.7.4")
|
|
|
- self.__run_command("sudo make install", cwd="Python-2.7.4")
|
|
|
- self.__run_command("curl https://pypi.python.org/packages/source/d/distribute/distribute-0.6.38.tar.gz | tar xvz")
|
|
|
- # run pypy before python. (`setup.py install` fails after `sudo setup.py install`)
|
|
|
- self.__run_command("../pypy-2.0/bin/pypy setup.py install", cwd="distribute-0.6.38")
|
|
|
- self.__run_command("sudo python setup.py install", cwd="distribute-0.6.38")
|
|
|
self.__run_command("curl https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz | tar xvz")
|
|
|
self.__run_command("../pypy-2.0/bin/pypy setup.py install", cwd="pip-1.3.1")
|
|
|
- self.__run_command("sudo python setup.py install", cwd="pip-1.3.1")
|
|
|
- self.__run_command("sudo pip install MySQL-python==1.2.4")
|
|
|
- self.__run_command("sudo pip install simplejson==3.0.7")
|
|
|
+ self.__run_command("python setup.py install", cwd="pip-1.3.1")
|
|
|
+
|
|
|
+ self.__run_command("pip install MySQL-python==1.2.4")
|
|
|
+ self.__run_command("pip install simplejson==3.3.0")
|
|
|
self.__run_command("curl http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.tar.gz | tar xvz")
|
|
|
- self.__run_command("sudo python setup.py install", cwd="psycopg2-2.5")
|
|
|
+ self.__run_command("python setup.py install", cwd="psycopg2-2.5")
|
|
|
self.__run_command("git clone https://github.com/iiilx/django-psycopg2-pool.git")
|
|
|
- self.__run_command("sudo python setup.py install", cwd="django-psycopg2-pool")
|
|
|
- self.__run_command("sudo pip install --upgrade numpy==1.7.1")
|
|
|
+ self.__run_command("python setup.py install", cwd="django-psycopg2-pool")
|
|
|
+ self.__run_command("pip install --upgrade numpy==1.7.1")
|
|
|
self.__run_command("pypy-2.0/bin/pip install PyMySQL==0.5")
|
|
|
+ self.__run_command("easy_install -U 'ujson==1.30'")
|
|
|
|
|
|
#
|
|
|
# nodejs
|
|
@@ -215,10 +217,8 @@ class Installer:
|
|
|
# Gunicorn
|
|
|
#
|
|
|
|
|
|
- self.__run_command("sudo easy_install -U 'gunicorn==0.17.4'")
|
|
|
- self.__run_command("sudo pip install --upgrade meinheld")
|
|
|
- self.__run_command("sudo easy_install -U 'eventlet==0.12.1'")
|
|
|
- self.__run_command("sudo pip install --upgrade 'gevent==0.13.8'")
|
|
|
+ self.__run_command("easy_install -U 'gunicorn==0.17.4'")
|
|
|
+ self.__run_command("pip install --upgrade meinheld")
|
|
|
|
|
|
#
|
|
|
# Resin
|
|
@@ -242,16 +242,14 @@ class Installer:
|
|
|
# Tornado
|
|
|
##############################
|
|
|
packages = "tornado==3.0.1 motor==0.1 pymongo==2.5"
|
|
|
- self.__run_command("sudo pip install " + packages)
|
|
|
+ self.__run_command("pip install " + packages)
|
|
|
self.__run_command("pypy-2.0/bin/pip install " + packages)
|
|
|
|
|
|
##############################
|
|
|
# Django
|
|
|
##############################
|
|
|
- self.__run_command("curl http://www.djangoproject.com/m/releases/1.4/Django-1.4.tar.gz | tar xvz")
|
|
|
- self.__run_command("sudo rm -rf /usr/local/lib/python2.7/site-packages/django")
|
|
|
- self.__run_command("sudo python setup.py install", cwd="Django-1.4")
|
|
|
- self.__run_command("sudo easy_install -U 'ujson==1.30'")
|
|
|
+ self.__run_command("rm -rf python-2.7.5/lib/python2.7/site-packages/django")
|
|
|
+ self.__run_command("pip install -U Django==1.5.1")
|
|
|
|
|
|
##############################
|
|
|
# Grails
|
|
@@ -265,13 +263,13 @@ class Installer:
|
|
|
# Flask
|
|
|
##############################
|
|
|
packages = "flask==0.9 flask-sqlalchemy==0.16 sqlalchemy==0.8.1 jinja2==2.6 werkzeug==0.8.3"
|
|
|
- self.__run_command("sudo pip install " + packages)
|
|
|
+ self.__run_command("pip install " + packages)
|
|
|
self.__run_command("pypy-2.0/bin/pip install " + packages)
|
|
|
|
|
|
##############################
|
|
|
# Bottle
|
|
|
##############################
|
|
|
- self.__run_command("sudo pip install bottle bottle-sqlalchemy")
|
|
|
+ self.__run_command("pip install bottle bottle-sqlalchemy")
|
|
|
|
|
|
##############################
|
|
|
# Play 2
|