setup_venv: Clean up VENV_DEPENDENCIES using parsed lsb_release.

This is mostly a cleanup, but it should also save 50ms in the runtime
of create-production-venv.
This commit is contained in:
Tim Abbott
2018-05-29 10:37:11 -07:00
parent 5d39a0f0fc
commit 0fabff6dda
3 changed files with 7 additions and 12 deletions

View File

@@ -143,10 +143,6 @@ APT_DEPENDENCIES = {
"postgresql-9.6",
"postgresql-9.6-tsearch-extras",
"postgresql-9.6-pgroonga",
# Technically, this should be in VENV_DEPENDENCIES, but it
# doesn't exist in trusty and we don't have a conditional on
# platform there.
"virtualenv",
],
"trusty": UBUNTU_COMMON_APT_DEPENDENCIES + [
"postgresql-9.3",
@@ -157,13 +153,11 @@ APT_DEPENDENCIES = {
"postgresql-9.5",
"postgresql-9.5-tsearch-extras",
"postgresql-9.5-pgroonga",
"virtualenv", # see comment on stretch
],
"bionic": UBUNTU_COMMON_APT_DEPENDENCIES + [
"postgresql-10",
"postgresql-10-pgroonga",
"postgresql-10-tsearch-extras",
"virtualenv", # see comment on stretch
],
}