Commit 413310bc authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

factor out debian_deps()

Summary:
I want to access the list of deps without the install
instructions attached later in this stack of diffs in `shell_builder.py`.

Refs: https://github.com/facebook/watchman/pull/639

Reviewed By: snarkmaster

Differential Revision: D9552419

fbshipit-source-id: 333cfa0c33bc1aa623de7ac3546a8f1785869a4f
parent 5a9eb01a
...@@ -178,42 +178,50 @@ class FBCodeBuilder(object): ...@@ -178,42 +178,50 @@ class FBCodeBuilder(object):
''' '''
raise NotImplementedError raise NotImplementedError
def debian_deps(self):
return [
'autoconf-archive',
'bison',
'build-essential',
'cmake',
'curl',
'flex',
'git',
'gperf',
'joe',
'libboost-all-dev',
'libcap-dev',
'libdouble-conversion-dev',
'libevent-dev',
'libgflags-dev',
'libgoogle-glog-dev',
'libkrb5-dev',
'libpcre3-dev',
'libpthread-stubs0-dev',
'libnuma-dev',
'libsasl2-dev',
'libsnappy-dev',
'libsqlite3-dev',
'libssl-dev',
'libtool',
'netcat-openbsd',
'pkg-config',
'sudo',
'unzip',
'wget',
]
# #
# Specific build helpers # Specific build helpers
# #
def install_debian_deps(self): def install_debian_deps(self):
actions = [ actions = [
self.run(ShellQuoted( self.run(
'apt-get update && apt-get install -yq ' ShellQuoted('apt-get update && apt-get install -yq {deps}').format(
'autoconf-archive ' deps=shell_join(' ', (
'bison ' ShellQuoted(dep) for dep in self.debian_deps())))
'build-essential ' ),
'cmake '
'curl '
'flex '
'git '
'gperf '
'joe '
'libboost-all-dev '
'libcap-dev '
'libdouble-conversion-dev '
'libevent-dev '
'libgflags-dev '
'libgoogle-glog-dev '
'libkrb5-dev '
'libnuma-dev '
'libsasl2-dev '
'libsnappy-dev '
'libsqlite3-dev '
'libssl-dev '
'libtool '
'netcat-openbsd '
'pkg-config '
'sudo '
'unzip '
'wget'
)),
] ]
gcc_version = self.option('gcc_version') gcc_version = self.option('gcc_version')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment