123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- import subprocess
- import os
- import time
- import traceback
- import sys
- class Installer:
- ############################################################
- # install_software
- ############################################################
- def install_software(self):
- if self.benchmarker.install == 'all' or self.benchmarker.install == 'server':
- self.__install_server_software()
- if self.benchmarker.install == 'all' or self.benchmarker.install == 'client':
- self.__install_client_software()
- ############################################################
- # End install_software
- ############################################################
- ############################################################
- # __install_server_software
- ############################################################
- def __install_server_software(self):
- print("\nINSTALL: Installing server software\n")
- #######################################
- # Prerequisites
- #######################################
- self.__run_command("sudo apt-get update", True)
- self.__run_command("sudo apt-get upgrade", True)
- self.__run_command("sudo apt-get install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev python-software-properties unzip git-core libcurl4-openssl-dev libbz2-dev libmysqlclient-dev mongodb-clients libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgdbm-dev ncurses-dev automake libffi-dev htop libtool bison libevent-dev libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0 libgnutls-dev libjson0-dev libmcrypt-dev libicu-dev cmake gettext curl libpq-dev mercurial", True)
- self.__run_command("sudo add-apt-repository ppa:ubuntu-toolchain-r/test", True)
- self.__run_command("sudo apt-get update", True)
- self.__run_command("sudo apt-get install gcc-4.8 g++-4.8", True)
- self.__run_command("cp ../config/benchmark_profile ../../.bash_profile")
- self.__run_command("sudo sh -c \"echo '* - nofile 16384' >> /etc/security/limits.conf\"")
- ##############################################################
- # System Tools
- ##############################################################
- #
- # Leiningen
- #
- self.__run_command("mkdir -p bin")
- self.__download("https://raw.github.com/technomancy/leiningen/stable/bin/lein")
- self.__run_command("mv lein bin/lein")
- self.__run_command("chmod +x bin/lein")
- #
- # Maven
- #
- self.__run_command("sudo apt-get install maven -qq")
- self.__run_command("mvn -version")
- #######################################
- # Languages
- #######################################
- self._install_python()
- #
- # Dart
- #
- self.__download("https://storage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz")
- self.__run_command("tar xzf dartsdk-linux-64.tar.gz")
- #
- # Erlang
- #
- self.__run_command("sudo cp ../config/erlang.list /etc/apt/sources.list.d/erlang.list")
- self.__download("http://binaries.erlang-solutions.com/debian/erlang_solutions.asc")
- self.__run_command("sudo apt-key add erlang_solutions.asc")
- self.__run_command("sudo apt-get update")
- self.__run_command("sudo apt-get install esl-erlang", True)
- #
- # nodejs
- #
- self.__download("http://nodejs.org/dist/v0.10.8/node-v0.10.8-linux-x64.tar.gz")
- self.__run_command("tar xzf node-v0.10.8-linux-x64.tar.gz")
- #
- # Java
- #
- self.__run_command("sudo apt-get install openjdk-7-jdk", True)
- self.__run_command("sudo apt-get remove --purge openjdk-6-jre openjdk-6-jre-headless", True)
- #
- # Ruby/JRuby
- #
- self.__run_command("curl -L get.rvm.io | bash -s head")
- self.__run_command("echo rvm_auto_reload_flag=2 >> ~/.rvmrc")
- self.__bash_from_string("source ~/.rvm/scripts/'rvm' && rvm install 2.0.0-p0")
- self.__bash_from_string("source ~/.rvm/scripts/'rvm' && rvm 2.0.0-p0 do gem install bundler")
- self.__bash_from_string("source ~/.rvm/scripts/'rvm' && rvm install jruby-1.7.4")
- self.__bash_from_string("source ~/.rvm/scripts/'rvm' && rvm jruby-1.7.4 do gem install bundler")
- # We need a newer version of jruby-rack
- self.__run_command("git clone git://github.com/jruby/jruby-rack.git", retry=True);
- self.__bash_from_string("cd jruby-rack && source ~/.rvm/scripts/'rvm' && rvm jruby-1.7.4 do bundle install")
- self.__bash_from_string("cd jruby-rack && source ~/.rvm/scripts/'rvm' && rvm jruby-1.7.4 do jruby -S bundle exec rake clean gem SKIP_SPECS=true")
- self.__bash_from_string("cd jruby-rack/target && source ~/.rvm/scripts/'rvm' && rvm jruby-1.7.4 do gem install jruby-rack-1.2.0.SNAPSHOT.gem")
- #
- # go
- #
- self.__download("http://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz");
- self.__run_command("tar xzf go1.1.1.linux-amd64.tar.gz")
- #
- # Perl
- #
- self.__download("http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746.tar.gz");
- self.__run_command("tar xzf ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746.tar.gz");
- self.__run_command("sudo ./install.sh --license-accepted --prefix /opt/ActivePerl-5.16 --no-install-html", cwd="ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746", send_yes=True)
- self.__download("http://cpanmin.us", "cpanminus.pl")
- self.__run_command("perl cpanminus.pl --sudo App::cpanminus")
- self.__run_command("cpanm -f -S DBI DBD::mysql Kelp Dancer Mojolicious Kelp::Module::JSON::XS Dancer::Plugin::Database Starman Plack JSON Web::Simple DBD::Pg JSON::XS EV HTTP::Parser::XS Monoceros EV IO::Socket::IP IO::Socket::SSL")
- #
- # php
- #
- self.__download("http://www.php.net/get/php-5.4.13.tar.gz/from/us1.php.net/mirror")
- self.__run_command("tar xzf php-5.4.13.tar.gz")
- self.__run_command("./configure --with-pdo-mysql --with-mysql --with-mcrypt --enable-intl --enable-mbstring --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --with-openssl", cwd="php-5.4.13")
- self.__run_command("make", cwd="php-5.4.13")
- self.__run_command("sudo make install", cwd="php-5.4.13")
- self.__run_command("printf \"\\n\" | sudo pecl install apc-beta", cwd="php-5.4.13")
- self.__run_command("sudo cp ../config/php.ini /usr/local/lib/php.ini")
- self.__run_command("sudo cp ../config/php-fpm.conf /usr/local/lib/php-fpm.conf")
- self.__run_command("rm php-5.4.13.tar.gz")
- # Composer
- self.__download("https://getcomposer.org/installer", "composer-installer.php")
- self.__run_command("php composer-installer.php --install-dir=bin")
- # Phalcon
- self.__run_command("git clone git://github.com/phalcon/cphalcon.git", retry=True)
- self.__run_command("sudo ./install", cwd="cphalcon/build")
- # YAF
- self.__run_command("sudo pecl install yaf")
- #
- # Haskell
- #
- self.__run_command("sudo apt-get install ghc cabal-install", True)
- #
- # RingoJs
- #
- self.__download("http://www.ringojs.org/downloads/ringojs_0.9-1_all.deb")
- self.__run_command("sudo apt-get install jsvc", True)
- self.__run_command("sudo dpkg -i ringojs_0.9-1_all.deb", True)
- self.__run_command("rm ringojs_0.9-1_all.deb")
- #
- # Mono
- #
- self.__run_command("git clone git://github.com/mono/mono", retry=True)
- self.__run_command("git checkout mono-3.2.1", cwd="mono")
- self.__run_command("./autogen.sh --prefix=/usr/local", cwd="mono")
- self.__run_command("make get-monolite-latest", cwd="mono")
- self.__run_command("make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe", cwd="mono")
- self.__run_command("sudo make install", cwd="mono")
- self.__run_command("mozroots --import --sync", retry=True)
- self.__run_command("git clone git://github.com/mono/xsp", retry=True)
- self.__run_command("./autogen.sh --prefix=/usr/local", cwd="xsp")
- self.__run_command("make", cwd="xsp")
- self.__run_command("sudo make install", cwd="xsp")
- #
- # Nimrod
- #
- self.__download("http://www.nimrod-code.org/download/nimrod_0.9.2.zip")
- self.__run_command("unzip nimrod_0.9.2.zip")
- self.__run_command("chmod +x build.sh", cwd="nimrod")
- self.__run_command("./build.sh", cwd="nimrod")
- self.__run_command("chmod +x install.sh", cwd="nimrod")
- self.__run_command("sudo ./install.sh /usr/bin", cwd="nimrod")
- #######################################
- # Webservers
- #######################################
- #
- # Nginx
- #
- self.__download("http://nginx.org/download/nginx-1.4.1.tar.gz")
- self.__run_command("tar xzf nginx-1.4.1.tar.gz")
- self.__run_command("./configure", cwd="nginx-1.4.1")
- self.__run_command("make", cwd="nginx-1.4.1")
- self.__run_command("sudo make install", cwd="nginx-1.4.1")
- #
- # Openresty (nginx with openresty stuff)
- #
- self.__download("http://openresty.org/download/ngx_openresty-1.2.7.5.tar.gz")
- self.__run_command("tar xzf ngx_openresty-1.2.7.5.tar.gz")
- self.__run_command("./configure --with-luajit", cwd="ngx_openresty-1.2.7.5")
- self.__run_command("make", cwd="ngx_openresty-1.2.7.5")
- self.__run_command("sudo make install", cwd="ngx_openresty-1.2.7.5")
- #
- # Resin
- #
- self.__run_command("sudo cp -r /usr/lib/jvm/java-1.7.0-openjdk-amd64/include /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/bin/")
- self.__download("http://www.caucho.com/download/resin-4.0.36.tar.gz")
- self.__run_command("tar xzf resin-4.0.36.tar.gz")
- self.__run_command("./configure --prefix=`pwd`", cwd="resin-4.0.36")
- self.__run_command("make", cwd="resin-4.0.36")
- self.__run_command("make install", cwd="resin-4.0.36")
- self.__run_command("mv conf/resin.properties conf/resin.properties.orig", cwd="resin-4.0.36")
- self.__run_command("cat ../config/resin.properties > resin-4.0.36/conf/resin.properties")
- self.__run_command("mv conf/resin.xml conf/resin.xml.orig", cwd="resin-4.0.36")
- self.__run_command("cat ../config/resin.xml > resin-4.0.36/conf/resin.xml")
- ##############################################################
- # Frameworks
- ##############################################################
- #
- # Grails
- #
- self.__download("http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.1.1.zip")
- self.__run_command("unzip -o grails-2.1.1.zip")
- self.__run_command("rm grails-2.1.1.zip")
- #
- # Play 2
- #
- self.__download("http://downloads.typesafe.com/play/2.1.2-RC1/play-2.1.2-RC1.zip")
- self.__run_command("unzip -o play-2.1.2-RC1.zip")
- self.__run_command("rm play-2.1.2-RC1.zip")
- #
- # Play 1
- #
- self.__download("http://downloads.typesafe.com/releases/play-1.2.5.zip")
- self.__run_command("unzip -o play-1.2.5.zip")
- self.__run_command("rm play-1.2.5.zip")
- self.__run_command("mv play-1.2.5/play play-1.2.5/play1")
- # siena
- self.__run_command("yes | play-1.2.5/play1 install siena")
- #
- # TreeFrog Framework
- #
- self.__run_command("sudo apt-get install qt4-qmake libqt4-dev libqt4-sql-mysql g++", True)
- self.__download("http://downloads.sourceforge.net/project/treefrog/src/treefrog-1.6.tar.gz")
- self.__run_command("tar xzf treefrog-1.6.tar.gz")
- self.__run_command("rm treefrog-1.6.tar.gz")
- self.__run_command("./configure --enable-mongo", cwd="treefrog-1.6")
- self.__run_command("make", cwd="treefrog-1.6/src")
- self.__run_command("sudo make install", cwd="treefrog-1.6/src")
- self.__run_command("make", cwd="treefrog-1.6/tools")
- self.__run_command("sudo make install", cwd="treefrog-1.6/tools")
- #
- # Vert.x
- #
- self.__download("http://vertx.io/vertx-downloads/downloads/vert.x-1.3.1.final.tar.gz")
- self.__run_command("tar xzf vert.x-1.3.1.final.tar.gz")
- #
- # Yesod
- #
- self.__run_command("cabal update")
- self.__run_command("cabal install yesod persistent-mysql")
- #
- # Jester
- #
- self.__run_command("git clone git://github.com/dom96/jester.git jester/jester", retry=True)
- print("\nINSTALL: Finished installing server software\n")
- ############################################################
- # End __install_server_software
- ############################################################
- def _install_python(self):
- # .profile is not loaded yet. So we should use full path.
- pypy_bin = "~/FrameworkBenchmarks/installs/pypy/bin"
- python_bin = "~/FrameworkBenchmarks/installs/py2/bin"
- python3_bin= "~/FrameworkBenchmarks/installs/py3/bin"
- def easy_install(pkg, two=True, three=False, pypy=False):
- cmd = "/easy_install -ZU '" + pkg + "'"
- if two: self.__run_command(python_bin + cmd)
- if three: self.__run_command(python3_bin + cmd)
- if pypy: self.__run_command(pypy_bin + cmd)
- 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("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/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-3.3.2")
- self.__run_command("make install", cwd="Python-3.3.2")
- self.__download("https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py")
- self.__run_command(pypy_bin + "/pypy ez_setup.py")
- self.__run_command(python_bin + "/python ez_setup.py")
- self.__run_command(python3_bin + "/python3 ez_setup.py")
- 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('psycopg2==2.5.1', three=True)
- easy_install('simplejson==3.3.0', 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('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)
- # 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('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)
- # Flask
- easy_install('Werkzeug==0.9.3', 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('Flask-SQLAlchemy==1.0', two=True, three=True, pypy=True)
- # Bottle
- easy_install('bottle==0.11.6', two=True, three=True, pypy=True)
- easy_install('bottle-sqlalchemy==0.4', two=True, three=True, pypy=True)
- ############################################################
- # __install_error
- ############################################################
- def __install_error(self, message):
- print("\nINSTALL ERROR: %s\n" % message)
- if self.benchmarker.install_error_action == 'abort':
- sys.exit("Installation aborted.")
- ############################################################
- # End __install_error
- ############################################################
- ############################################################
- # __install_client_software
- ############################################################
- def __install_client_software(self):
- print("\nINSTALL: Installing client software\n")
- self.__run_command("cd .. && " + self.benchmarker.sftp_string(batch_file="config/client_sftp_batch"), True)
- remote_script = """
- ##############################
- # Prerequisites
- ##############################
- yes | sudo apt-get update
- yes | sudo apt-get install build-essential git libev-dev libpq-dev libreadline6-dev postgresql
- sudo sh -c "echo '* - nofile 16384' >> /etc/security/limits.conf"
- sudo mkdir -p /ssd
- sudo mkdir -p /ssd/log
- ##############################
- # MySQL
- ##############################
- sudo sh -c "echo mysql-server mysql-server/root_password_again select secret | debconf-set-selections"
- sudo sh -c "echo mysql-server mysql-server/root_password select secret | debconf-set-selections"
- yes | sudo apt-get install mysql-server
- sudo stop mysql
- # use the my.cnf file to overwrite /etc/mysql/my.cnf
- sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.orig
- sudo mv my.cnf /etc/mysql/my.cnf
- sudo cp -R -p /var/lib/mysql /ssd/
- sudo cp -R -p /var/log/mysql /ssd/log
- sudo cp usr.sbin.mysqld /etc/apparmor.d/
- sudo /etc/init.d/apparmor reload
- sudo start mysql
- # Insert data
- mysql -uroot -psecret < create.sql
- ##############################
- # Postgres
- ##############################
- sudo useradd benchmarkdbuser -p benchmarkdbpass
- sudo -u postgres psql template1 < create-postgres-database.sql
- sudo -u benchmarkdbuser psql hello_world < create-postgres.sql
- sudo -u postgres -H /etc/init.d/postgresql stop
- sudo mv postgresql.conf /etc/postgresql/9.1/main/postgresql.conf
- sudo mv pg_hba.conf /etc/postgresql/9.1/main/pg_hba.conf
- sudo cp -R -p /var/lib/postgresql/9.1/main /ssd/postgresql
- sudo -u postgres -H /etc/init.d/postgresql start
- sudo mv 60-postgresql-shm.conf /etc/sysctl.d/60-postgresql-shm.conf
- ##############################
- # wrk
- ##############################
- git clone https://github.com/wg/wrk.git
- cd wrk
- make
- sudo cp wrk /usr/local/bin
- cd ~
- git clone https://github.com/wg/wrk.git wrk-pipeline
- cd wrk-pipeline
- git checkout pipeline
- make
- sudo cp wrk /usr/local/bin/wrk-pipeline
- cd ~
- ##############################
- # MongoDB
- ##############################
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- sudo cp 10gen.list /etc/apt/sources.list.d/10gen.list
- sudo apt-get update
- yes | sudo apt-get install mongodb-10gen
- sudo stop mongodb
- sudo mv /etc/mongodb.conf /etc/mongodb.conf.orig
- sudo mv mongodb.conf /etc/mongodb.conf
- sudo cp -R -p /var/lib/mongodb /ssd/
- sudo cp -R -p /var/log/mongodb /ssd/log/
- sudo start mongodb
- """
-
- print("\nINSTALL: %s" % self.benchmarker.ssh_string)
- p = subprocess.Popen(self.benchmarker.ssh_string.split(" "), stdin=subprocess.PIPE)
- p.communicate(remote_script)
- returncode = p.returncode
- if returncode != 0:
- self.__install_error("status code %s running subprocess '%s'." % (returncode, self.benchmarker.ssh_string))
- print("\nINSTALL: Finished installing client software\n")
- ############################################################
- # End __install_client_software
- ############################################################
- ############################################################
- # __run_command
- ############################################################
- def __run_command(self, command, send_yes=False, cwd=None, retry=False):
- try:
- cwd = os.path.join(self.install_dir, cwd)
- except AttributeError:
- cwd = self.install_dir
- if retry:
- max_attempts = 5
- else:
- max_attempts = 1
- attempt = 1
- delay = 0
- print("\nINSTALL: %s (cwd=%s)" % (command, cwd))
- while True:
- error_message = ""
- try:
- # Execute command.
- if send_yes:
- process = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE, cwd=cwd)
- process.communicate("yes")
- returncode = process.returncode
- if returncode:
- raise subprocess.CalledProcessError(returncode, command)
- else:
- subprocess.check_call(command, shell=True, cwd=cwd)
- break # Exit loop if successful.
- except:
- exceptionType, exceptionValue, exceptionTraceBack = sys.exc_info()
- error_message = "".join(traceback.format_exception_only(exceptionType, exceptionValue))
- print error_message
- # Exit if there are no more attempts left.
- attempt += 1
- if attempt > max_attempts:
- break
- # Delay before next attempt.
- if delay == 0:
- delay = 5
- else:
- delay = delay * 2
- print("Attempt %s/%s starting in %s seconds." % (attempt, max_attempts, delay))
- time.sleep(delay)
- if error_message:
- self.__install_error(error_message)
- ############################################################
- # End __run_command
- ############################################################
- ############################################################
- # __bash_from_string
- # Runs bash -c "command" in install_dir.
- ############################################################
- def __bash_from_string(self, command):
- self.__run_command('bash -c "%s"' % command)
- ############################################################
- # End __bash_from_string
- ############################################################
- ############################################################
- # __download
- # Downloads a file from a URI.
- ############################################################
- def __download(self, uri, filename=""):
- if filename:
- filename_option = "-O %s " % filename
- else:
- filename_option = ""
- command = "wget -nv --no-check-certificate --trust-server-names %s%s" % (filename_option, uri)
- self.__run_command(command, retry=True)
- ############################################################
- # End __download
- ############################################################
- ############################################################
- # __init__(benchmarker)
- ############################################################
- def __init__(self, benchmarker):
- self.benchmarker = benchmarker
- self.install_dir = "installs"
- try:
- os.mkdir(self.install_dir)
- except OSError:
- pass
- ############################################################
- # End __init__
- ############################################################
- # vim: sw=2
|