def install_gcc_5(): if which('gcc-5'): return install_homebrew() print(ansi.success('INSTALL') + ' gcc 5 for xgboost') subprocess.check_call(('brew', 'install', 'gcc@5'))
def install_bazel(): if which('bazel'): return install_homebrew() print(ansi.success('INSTALL') + ' bazel for tensorflow') subprocess.check_call(('brew', 'install', 'bazel'))
def install_homebrew(): if which('brew'): return print(ansi.success('INSTALL') + ' homebrew') subprocess.check_call(( '/usr/bin/ruby', '-e', '"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' ))