Use ubuntu dependencies for tools.
- No longer sourcing deps for flatpak's sake. - Switching from svglib to cairosvg since svglib not in ubuntu.
This commit is contained in:
parent
96b148d450
commit
3b8a6cffcb
4 changed files with 31 additions and 55 deletions
|
|
@ -2,33 +2,9 @@
|
|||
|
||||
|
||||
import subprocess
|
||||
|
||||
import eris.tools
|
||||
|
||||
|
||||
pip_deps, go_deps, luarocks_deps, dist_deps, git_deps = set(), set(), set(), \
|
||||
set(), set()
|
||||
dep_types = {"pip": pip_deps, "go": go_deps, "luarocks": luarocks_deps,
|
||||
"git": git_deps}
|
||||
for dependency in eris.tools.dependencies():
|
||||
if "/" in dependency:
|
||||
dep_type, dep = dependency.split("/", maxsplit=1)
|
||||
dep_types[dep_type].add(dep)
|
||||
else:
|
||||
dist_deps.add(dependency)
|
||||
if dist_deps:
|
||||
subprocess.run(["sudo", "apt-get", "-y", "install"] + list(dist_deps),
|
||||
check=True)
|
||||
if pip_deps:
|
||||
subprocess.run(["python" + eris.tools.PYTHON_VERSION, "-m", "pip",
|
||||
"install", "--force-reinstall"] + list(pip_deps),
|
||||
check=True)
|
||||
if go_deps:
|
||||
subprocess.run(["sudo", "apt-get", "-y", "install", "golang-go"],
|
||||
check=True)
|
||||
subprocess.run(["go", "get"] + list(go_deps), check=True)
|
||||
|
||||
if luarocks_deps:
|
||||
subprocess.run(["sudo", "apt-get", "-y", "install", "luarocks",
|
||||
"liblua5.3-dev"], check=True)
|
||||
subprocess.run(["sudo", "luarocks", "install"] + list(luarocks_deps),
|
||||
check=True)
|
||||
subprocess.run(["sudo", "apt-get", "-y", "install"] +
|
||||
list(eris.tools.dependencies()), check=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue