{"body":"\n    def src_install(self):\n        subprocess.check_call(['apt-get', 'build-dep', 'python-mysqldb', '-y'])\n        subprocess.check_call(['pip', 'install', '--upgrade', 'pip',\n                               'virtualenv', 'setuptools' ,'pbr', 'tox'])\n        subprocess.check_call(['git', '-C', '/home/ubuntu', 'clone',\n                               'https://github.com/openstack/congress.git'])\n        subprocess.check_call(['git', '-C', self.install_dir, 'checkout',\n                               '{}'.format(self.src_branch)])\n        subprocess.check_call(['virtualenv', '--python=python2.7',\n                              self.install_dir])\n        subprocess.check_call(['bin/pip', 'install' ,'-r', 'requirements.txt'],\n                              cwd=self.install_dir)\n        subprocess.check_call(['bin/pip', 'install', '.'],\n                              cwd=self.install_dir)\n        subprocess.check_call(['bin/pip', 'install', 'tox'],\n                              cwd=self.install_dir)\n        subprocess.check_call(['bin/pip', 'install', 'MySQL-python'],\n                              cwd=self.install_dir)\n        subprocess.check_call(['bin/tox', '-egenconfig'], cwd=self.install_dir)\n        subprocess.check_call(['chown', '-R', 'ubuntu', self.install_dir])","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/2OJIMozC","modified":1464966052,"id":"2OJIMozC","size":1281,"lines":21,"own_paste":false,"theme":"","date":1464966052}