def task_install(self, slavename=None, hostInfo=None, buildmaster='buildbot.twistedmatrix.com', port=9987, adminInfo='Tom Prince <*****@*****.**>', password=None): """ Install buildslave """ if slavename is None: slavename = env.slaves[env.host] if password is None: password = passwordFromPrivateData(slavename) # Twisted's dependencies # (ubuntu/debian version) package.update() package.install([ packageEquivs[info.distroFamily()].get(pkg, pkg) for pkg in 'python-pyasn1', 'python-crypto', 'python-gmpy', 'python-gobject', 'python-soappy', 'python-subunit', 'python-openssl', 'python-dev', 'bzr', 'git', 'gcc', 'subversion', 'python-subvertpy', 'python-pip', # cpython translator 'make', 'gmp-devel', # subunit 'cppunit-devel', 'check-devel', 'g++', 'perl-devel', # Docs 'texlive', 'netpbm-progs', 'bzip2', 'python-sphinx', # For pypy translator 'hg', 'libffi-devel', 'openssl-devel', 'ncurses-devel', 'expat-devel', 'sqlite-devel', 'zlib-devel', 'bzip2-devel', ])
def task_install(self): """ Install mailman. """ debconf.setDebconfValue('mailman', 'mailman/site_languages', 'multiselect', 'en') debconf.setDebconfValue('mailman', 'mailman/create_site_list', 'note', '') package.install(['mailman']) put(sibpath(__file__, 'mm_cfg.py'), '/etc/mailman/mm_cfg.py', use_sudo=True) sudo('/usr/sbin/usermod -a -G service --home /var/lib/mailman {}'.format(self.serviceUser))
def task_install(self): """ Install mailman. """ debconf.setDebconfValue('mailman', 'mailman/site_languages', 'multiselect', 'en') debconf.setDebconfValue('mailman', 'mailman/create_site_list', 'note', '') package.update() package.install(['mailman']) put(sibpath(__file__, 'mm_cfg.py'), '/etc/mailman/mm_cfg.py', use_sudo=True) sudo('/usr/sbin/usermod -a -G service --home /var/lib/mailman {}'. format(self.serviceUser))
def task_install(self): """ Install diffresource. """ # Bootstrap a new service environment self.bootstrap() package.install(['diffstat']) with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) self.update() cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) run('PYTHONPATH=~/divmod/Combinator COMBINATOR_PROJECTS=~/Projects ~/divmod/Combinator/bin/chbranch Twisted trunk svn://svn.twistedmatrix.com/svn/Twisted/trunk')
def task_install(self): """ Install codespeed, a benchmark reporting tool """ # Bootstrap a new service environment self.bootstrap(python='system') package.install(['python-svn']) with settings(user=self.serviceUser): run('/bin/ln -nsf {}/start {}/start'.format(self.configDir, self.binDir)) run('mkdir -p ~/data') pip.install('Django==1.2.7', python='system') self.update() cron.install(self.serviceUser, '{}/crontab'.format(self.configDir)) if env.get('installTestData'): self.task_installTestData() self.task_generateSecretKey()
def bootstrap(): """ Prepare the machine to be able to correctly install, configure and execute twisted services. """ sudo('apt-get update') package.install(['sudo']) # Each service specific system user shall be added to the 'service' group sudo('/usr/sbin/groupadd -f --system service') # pypy is installed with a tarball downloaded with wget. package.install(['wget']) # libssl-dev is needed for installing pyOpenSSL for PyPy. package.install(['libssl-dev']) package.install(['python2.7', 'python2.7-dev']) # gcc is needed for 'pip install' package.install(['gcc', 'python-pip']) # For trac package.install(['python-subversion', 'enscript']) # For equivs package.install(['equivs']) # For buildbot/codespeed package.install(['sqlite3']) # Development and deployment package.install(['python-virtualenv']) package.install(['python-twisted', 'python-openssl']) pypy.install() authbind.install() git.install() bazaar.install() postgres.install() sshConfig()
def install(): package.install(['authbind'])
def bootstrap(): """ Prepare the machine to be able to correctly install, configure and execute twisted services. """ # Each service specific system user shall be added to the 'service' group sudo('/usr/sbin/groupadd -f --system service') package.install(['python2.7', 'python2.7-dev']) # gcc is needed for 'pip install' package.install(['gcc', 'python-pip']) # For trac package.install(['python-subversion', 'enscript']) # For equivs package.install(['equivs']) # For buildbot/codespeed package.install(['sqlite3']) # Development and deployment package.install(['python-virtualenv']) package.install(['python-twisted', 'python-openssl']) pypy.install() authbind.install() git.install() bazaar.install() postgres.install() sshConfig()
def bootstrap(): """ Prepare the machine to be able to correctly install, configure and execute twisted services. """ sudo('apt-get update') package.install(['sudo']) # Each service specific system user shall be added to the 'service' group sudo('/usr/sbin/groupadd -f --system service') # pypy is installed with a tarball downloaded with wget. package.install(['wget']) # libssl-dev is needed for installing pyOpenSSL for PyPy. package.install(['libssl-dev', 'libffi-dev']) package.install(['python2.7-dev', 'pypy-dev' ]) # We don't have pip for python2.7 on Ubuntu 20.04 sudo('curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py') sudo('python2 get-pip.py') sudo('pip2 install virtualenv') # gcc and svn is needed for 'pip install' package.install(['gcc', 'subversion']) # For trac package.install(['enscript', 'python-subversion']) # For equivs package.install(['equivs']) # For buildbot/codespeed package.install(['sqlite3']) authbind.install() git.install() postgres.install() sshConfig()
def install(): package.install(['postgresql-12'])
def install(): package.install(['bzr'])
def install(): package.install(['postgresql-9.1', 'postgresql-server-dev-9.1'])
def install(): package.install(['git'])
def install(): try: package.install(['postgresql-9.1', 'postgresql-server-dev-9.1']) except: package.install(['postgresql-9.3', 'postgresql-server-dev-9.3'])