|
@@ -43,6 +43,7 @@ class Installer:
|
|
|
self.__run_command("cat ../config/benchmark_profile >> ../../.bashrc")
|
|
|
self.__run_command("source ../../.profile")
|
|
|
self.__run_command("sudo sh -c \"echo '* - nofile 65535' >> /etc/security/limits.conf\"")
|
|
|
+ self.__run_command("sudo sysctl -w net.core.somaxconn=1024")
|
|
|
|
|
|
##############################################################
|
|
|
# System Tools
|
|
@@ -316,17 +317,17 @@ class Installer:
|
|
|
if three: self.__run_command(python3_bin + cmd, retry=True)
|
|
|
if pypy: self.__run_command(pypy_bin + cmd, retry=True)
|
|
|
|
|
|
- self.__download("http://bitbucket.org/pypy/pypy/downloads/pypy-2.1-linux64.tar.bz2")
|
|
|
- self.__run_command("tar xjf pypy-2.1-linux64.tar.bz2")
|
|
|
- self.__run_command('ln -sf pypy-2.1 pypy')
|
|
|
- self.__download("http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz")
|
|
|
- self.__run_command("tar xzf Python-2.7.5.tgz")
|
|
|
+ self.__download("https://bitbucket.org/pypy/pypy/downloads/pypy-2.2-linux64.tar.bz2")
|
|
|
+ self.__run_command("tar xjf pypy-2.2-linux64.tar.bz2")
|
|
|
+ self.__run_command('ln -sf pypy-2.2-linux64 pypy')
|
|
|
+ self.__download("http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz")
|
|
|
+ self.__run_command("tar xzf Python-2.7.6.tgz")
|
|
|
self.__download("http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.xz")
|
|
|
self.__run_command("tar xJf Python-3.3.2.tar.xz")
|
|
|
- self.__run_command("./configure --prefix=$HOME/FrameworkBenchmarks/installs/py2 --disable-shared CC=gcc-4.8", cwd="Python-2.7.5")
|
|
|
+ self.__run_command("./configure --prefix=$HOME/FrameworkBenchmarks/installs/py2 --disable-shared CC=gcc-4.8", cwd="Python-2.7.6")
|
|
|
self.__run_command("./configure --prefix=$HOME/FrameworkBenchmarks/installs/py3 --disable-shared CC=gcc-4.8", cwd="Python-3.3.2")
|
|
|
- self.__run_command("make -j2", cwd="Python-2.7.5")
|
|
|
- self.__run_command("make install", cwd="Python-2.7.5")
|
|
|
+ self.__run_command("make -j2", cwd="Python-2.7.6")
|
|
|
+ self.__run_command("make install", cwd="Python-2.7.6")
|
|
|
self.__run_command("make -j2", cwd="Python-3.3.2")
|
|
|
self.__run_command("make install", cwd="Python-3.3.2")
|
|
|
|
|
@@ -338,33 +339,34 @@ class Installer:
|
|
|
easy_install('pip==1.4.1', two=True, three=True, pypy=True)
|
|
|
easy_install('MySQL-python==1.2.4', two=True, three=False, pypy=True)
|
|
|
easy_install('https://github.com/clelland/MySQL-for-Python-3/archive/master.zip', two=False, three=True, pypy=False)
|
|
|
- easy_install('PyMySQL==0.5', pypy=True)
|
|
|
- easy_install('PyMySQL3==0.5', two=False, three=True)
|
|
|
+ easy_install('PyMySQL==0.6.1', two=True, three=True, pypy=True)
|
|
|
easy_install('psycopg2==2.5.1', three=True)
|
|
|
|
|
|
- easy_install('simplejson==3.3.0', two=True, three=True, pypy=False)
|
|
|
+ easy_install('simplejson==3.3.1', two=True, three=True, pypy=False)
|
|
|
easy_install('ujson==1.33', three=True)
|
|
|
- easy_install('https://github.com/downloads/surfly/gevent/gevent-1.0rc2.tar.gz', three=True)
|
|
|
+ easy_install('https://github.com/surfly/gevent/releases/download/1.0rc3/gevent-1.0rc3.tar.gz', three=False)
|
|
|
easy_install('uwsgi', three=True) # uwsgi is released too often to stick on single version.
|
|
|
|
|
|
# Gunicorn
|
|
|
- easy_install('gunicorn==17.5', two=True, three=True, pypy=True)
|
|
|
+ easy_install('gunicorn==18', two=True, three=True, pypy=True)
|
|
|
# meinheld HEAD supports gunicorn worker on Python 3
|
|
|
easy_install('https://github.com/mopemope/meinheld/archive/master.zip', two=True, three=True, pypy=True)
|
|
|
|
|
|
# Tornado
|
|
|
easy_install('tornado==3.1', two=True, three=True, pypy=True)
|
|
|
- easy_install('motor==0.1.1', two=True, three=True, pypy=True)
|
|
|
+ easy_install('motor==0.1.2', two=True, three=True, pypy=True)
|
|
|
easy_install('pymongo==2.5.2', two=True, three=True, pypy=True)
|
|
|
|
|
|
# Django
|
|
|
- easy_install("https://www.djangoproject.com/download/1.6b2/tarball/", two=True, three=True, pypy=True)
|
|
|
+ easy_install("https://www.djangoproject.com/download/1.6/tarball/", two=True, three=True, pypy=True)
|
|
|
|
|
|
# Flask
|
|
|
- easy_install('Werkzeug==0.9.3', two=True, three=True, pypy=True)
|
|
|
+ easy_install('Werkzeug==0.9.4', two=True, three=True, pypy=True)
|
|
|
easy_install('flask==0.10.1', two=True, three=True, pypy=True)
|
|
|
- easy_install('sqlalchemy==0.8.2', two=True, three=True, pypy=True)
|
|
|
- easy_install('Jinja2==2.7', two=True, three=True, pypy=True)
|
|
|
+ easy_install('sqlalchemy==0.8.3', two=True, three=False, pypy=True)
|
|
|
+ # SQLAlchemy 0.9 supports C extension for Python 3
|
|
|
+ easy_install('https://bitbucket.org/zzzeek/sqlalchemy/downloads/SQLAlchemy-0.9.0b1.tar.gz', two=False, three=True)
|
|
|
+ easy_install('Jinja2==2.7.1', two=True, three=True, pypy=True)
|
|
|
easy_install('Flask-SQLAlchemy==1.0', two=True, three=True, pypy=True)
|
|
|
|
|
|
# Bottle
|
|
@@ -372,8 +374,8 @@ class Installer:
|
|
|
easy_install('bottle-sqlalchemy==0.4', two=True, three=True, pypy=True)
|
|
|
|
|
|
# Falcon
|
|
|
- easy_install('Cython==0.19.1', two=True, three=True, pypy=True)
|
|
|
- easy_install('falcon==0.1.6post3', two=True, three=True, pypy=True)
|
|
|
+ easy_install('Cython==0.19.2', two=True, three=True, pypy=True)
|
|
|
+ easy_install('falcon==0.1.7', two=True, three=True, pypy=True)
|
|
|
|
|
|
############################################################
|
|
|
# __install_error
|