forked from SecurityFTW/cs-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
22 lines (20 loc) · 885 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/env python
from __future__ import print_function
import subprocess
def main():
""" main function """
try:
print ("Installing dependencies...")
subprocess.call(['sudo', 'pip', 'install', '-r', 'requirements.txt'])
print ("Installing AWS CLI") # WINDOWS HAS NO SUDO
subprocess.call(['sudo', 'pip', 'install', 'awscli', '--ignore-installed', 'six'])
print ("Installing sshpass")
subprocess.call(['sudo', 'tar', '-xvf', 'sshpass-1.06.tar.gz'], cwd = './tools')
subprocess.check_output(['sudo', './configure'], cwd='tools/sshpass-1.06')
subprocess.call(['sudo', 'make', 'install'], cwd='tools/sshpass-1.06/')
print ("Please enter your AWS credetionals")
subprocess.call(['aws', 'configure'])
except:
print ("FAILED in one of the steps")
if __name__ == '__main__':
main()