diff --git a/tools/cli-bootstrap/cli.bootstrap.py b/tools/cli-bootstrap/cli.bootstrap.py index 7a3756d34..f55b8c4d1 100644 --- a/tools/cli-bootstrap/cli.bootstrap.py +++ b/tools/cli-bootstrap/cli.bootstrap.py @@ -506,15 +506,6 @@ if __name__ == "__main__": RoverPrint(RoverMods.Blue('RID: %s'%(RoverMods.Green(RoverSettings._Rid)))) - # if we're root, then we will install dependencies - # should we ask first? It's going to be running apt-get in 'yes' mode. - if os.getuid() == 0: - RoverPrint(RoverMods.Yellow('(because sudo) is installing required dependencies to build the native components of the .NET GitHub Repositories.')) - - # are people cool with this? - RoverShellCall('chmod +x %s/repo-dependencies-installer.py'%(RoverSettings._ScriptDirectory), cwd=RoverSettings._ScriptDirectory) - RoverShellCall('python %s/repo-dependencies-installer.py'%(RoverSettings._ScriptDirectory), cwd=RoverSettings._ScriptDirectory) - # Spawn our working directory if not path.exists(RoverSettings._WorkingDirectory): makedirs(RoverSettings._WorkingDirectory) diff --git a/tools/cli-bootstrap/repo-dependencies-installer.py b/tools/cli-bootstrap/repo-dependencies-installer.py deleted file mode 100644 index ac8aef59e..000000000 --- a/tools/cli-bootstrap/repo-dependencies-installer.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python - -import json - -from subprocess import call -from subprocess import check_output -from os import path - -# Debian .deb apt, apt-cache, apt-get, dpkg -# Ubuntu .deb apt, apt-cache, apt-get, dpkg -# CentOS .rpm yum -# Fedora .rpm dnf -# FreeBSD Ports,.txz make, pkg - -def Detect(pm_name): - aptget_check_output = check_output('whereis %s'%(pm_name), shell=True) - - if(len(str(aptget_check_output).strip()) > len('%s:'%(pm_name))): - return True - - return False - -if __name__ == "__main__": - scriptDirectory = path.dirname(path.abspath(__file__)) - dependencies = json.load(open(path.join(scriptDirectory, 'repo-dependencies.json'), mode='r')) - - if Detect('apt-get'): - print('detected apt-get.') - for dep in dependencies['apt-get']: - call('apt-get -qqy install %s'%(str(dep)), shell=True) - elif Detect('yum'): - print('detected yum.') - - for dep in dependencies['yum']: - call('yum -qy install %s'%(str(dep)), shell=True) - else: - print('failed to find a compatible package manager.') - - print('TODO: Print list of dependencies, or attempt to fetch them from the web?') diff --git a/tools/cli-bootstrap/repo-dependencies.json b/tools/cli-bootstrap/repo-dependencies.json deleted file mode 100644 index 96bd7fe89..000000000 --- a/tools/cli-bootstrap/repo-dependencies.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "apt-get": - [ - "g++", - "cmake", - "llvm-3.5", - "clang-3.5", - "lldb-3.5", - "lldb-3.5-dev", - "libunwind8", - "libunwind8-dev", - "gettext", - "libicu-dev", - "liblttng-ust-dev", - "libcurl4-openssl-dev", - "libssl-dev", - "uuid-dev", - "libkrb5-dev", - "automake", - "libtool-bin" - ], - "yum": - [ - - ], - "dnf": - [ - - ], - "pkg": - [ - - ], - "ports": - [ - - ] -} \ No newline at end of file