Skip to content

Commit

Permalink
make_devtools_linux.py: better packages setup for ElbrusLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
NicSavichev committed Jan 9, 2024
1 parent 431a979 commit 9e246d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions make_devtools_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
is_ubuntu = ("Ubuntu" in linux_release_name)
is_centos = ('centos' in linux_release_id)
is_altlinux = (linux_release_id == 'altlinux')
is_elbrus_linux = ('elbrus' in linux_release_id)
print('Detected linux: {0} {1} ({2}) arch={3}'.format(linux_release_name, linux_release_ver, linux_release_id, linux_arch_type))

def error(s):
Expand Down Expand Up @@ -120,6 +121,10 @@ def download_url(url):
pkg_install_cmd = 'apt-get install'
pkg_to_install += ['python3-module-pip']
pkg_to_install += ['libX11-devel', 'libXrandr-devel', 'libfltk-devel', 'libxkbfile-devel', 'libudev-devel', 'libpulseaudio-devel', 'libalsa-devel']
elif is_elbrus_linux:
pkg_install_cmd = 'apt install'
pkg_to_install = ['python3-pip']
pkg_to_install += ['libx11', 'libxrandr', 'fltk', 'libxkbfile', 'pulseaudio', 'alsa-lib']
elif is_ubuntu:
pkg_install_cmd = 'apt install'
pkg_to_install += ['python3-pip', 'gcc', 'clang']
Expand Down

0 comments on commit 9e246d5

Please sign in to comment.