migrated Slipstream dependency installs to new package management
This commit is contained in:
parent
2ac709f93c
commit
f75c4c99ab
1 changed files with 4 additions and 4 deletions
|
|
@ -57,12 +57,12 @@ check-deps(){
|
|||
done
|
||||
pybin=$(which python3)
|
||||
if [ -z $pybin ] ; then
|
||||
run sudo apt-get install -y python3 python3-pip
|
||||
run install-packages python3 python3-pip
|
||||
# TODO: make a universal package install function
|
||||
fi
|
||||
pipbin=$(which pip3)
|
||||
if [ -z $pipbin ] ; then
|
||||
run sudo apt-get install -y python3-pip
|
||||
run install-packages python3-pip
|
||||
fi
|
||||
for pkg in ${pip_packages[@]} ; do
|
||||
pippkg_installed=$(pip list | grep -F $pkg ; echo $?)
|
||||
|
|
@ -89,8 +89,8 @@ check-deps(){
|
|||
|
||||
install-deps(){
|
||||
logger echo "Installing packages $sys_packages"
|
||||
for _package in $sys_packages ; do
|
||||
run sudo apt-get install -y $_package
|
||||
for _package in ${sys_packages[@]} ; do
|
||||
run install-packages $_package
|
||||
done
|
||||
if [ -f ${rundir}/requirements.txt ] ; then
|
||||
pip install -y ${rundir}/requirements.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue