Can now install in Gentoo.
This commit is contained in:
parent
f3b54ad1fc
commit
3f7fdfe443
4 changed files with 63 additions and 31 deletions
|
|
@ -21,11 +21,15 @@ cmd_for_dist = {"ubuntu": ["apt-get", "-y", "install"],
|
|||
"debian": ["apt-get", "-y", "install"],
|
||||
"fedora": ["dnf", "-y", "install"],
|
||||
"arch": ["pacman", "-S", "--noconfirm", "--needed"],
|
||||
"opensuse": ["zypper", "-n", "install"]}
|
||||
if pip_deps:
|
||||
dist_deps.add("python2-pip" if dist_id == "arch" else "python-pip")
|
||||
if pip3_deps:
|
||||
dist_deps.add("python-pip" if dist_id == "arch" else "python3-pip")
|
||||
"opensuse": ["zypper", "-n", "install"],
|
||||
"gentoo": ["emerge", "--noreplace"]}
|
||||
if dist_id == "gentoo":
|
||||
dist_deps.add("pip")
|
||||
else:
|
||||
if pip_deps:
|
||||
dist_deps.add("python2-pip" if dist_id == "arch" else "python-pip")
|
||||
if pip3_deps:
|
||||
dist_deps.add("python-pip" if dist_id == "arch" else "python3-pip")
|
||||
if dist_deps:
|
||||
subprocess.check_call(["sudo"] + cmd_for_dist[dist_id] + list(dist_deps))
|
||||
if pip_deps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue