Skip to content

Commit

Permalink
constraints.txt when installing stuff just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 27, 2024
1 parent 3e106e2 commit d758c58
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
9 changes: 6 additions & 3 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ alias ologs="tail -f /ramdisk/mycroft/!(bus.log)"
alias ovos-status="systemctl --user list-units | grep ovos"

# OVOS Freeze: Save installed OVOS and skill-related packages to requirements.txt
alias ovos-freeze="pip list --format=freeze | grep -E 'ovos-|skill-' > requirements.txt"
alias ovos-freeze="~/.venvs/ovos/bin/pip list --format=freeze | grep -E 'ovos-|skill-' > requirements.txt"

# OVOS Update: Update all OVOS and skill-related packages
alias ovos-update="pip install -U --pre \$(pip list --format=freeze | grep -E 'ovos-|skill-' | cut -d '=' -f 1)"
alias ovos-update="~/.venvs/ovos/bin/pip install -U --pre \$(pip list --format=freeze | grep -E 'ovos-|skill-' | cut -d '=' -f 1)"

# OVOS Outdated: List outdated OVOS and skill-related packages
alias ovos-outdated="pip list --outdated | grep -E 'ovos-|skill-'"
alias ovos-outdated="~/.venvs/ovos/bin/pip list --outdated | grep -E 'ovos-|skill-'"

# OVOS Pip: Run pip commands with a constraints file
alias ovos-pip="~/.venvs/ovos/bin/pip install -C /etc/mycroft/constraints.txt"
9 changes: 6 additions & 3 deletions .cli_login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ echo "OVOS Log Viewer:"
echo " ovos-logs [COMMAND] --help Small tool to help navigate the logs"
echo " ologs View all logs realtime"
echo
echo "Misc Helpful COMMANDs:"
echo " ovos-simple-cli Chat with your device through the terminal"
echo " ovos-status List OVOS-related systemd services"
echo "OVOS packages utils:"
echo " ovos-pip Install ovos packages using /etc/mycroft/constraints.txt"
echo " ovos-update Update all OVOS and skill-related packages"
echo " ovos-freeze Export installed OVOS packages to requirements.txt"
echo " ovos-outdated List outdated OVOS and skill-related packages"
echo
echo "Misc Helpful COMMANDs:"
echo " ovos-simple-cli Chat with your device through the terminal"
echo " ovos-status List OVOS-related systemd services"
echo
1 change: 1 addition & 0 deletions .github/workflows/build_img.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build headless image

on:
push:
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build_img_ca.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: build catalan headless image

on:
push:
workflow_dispatch:

jobs:
Expand Down
4 changes: 1 addition & 3 deletions build_raspOVOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ source /home/$USER/.venvs/ovos/bin/activate
# install OVOS in venv
echo "Installing OVOS..."
pip3 install wheel cython sdnotify tflite_runtime
pip3 install ovos-core[lgpl,mycroft,plugins,skills-audio,skills-essential,skills-internet,skills-media,skills-extra]
pip3 install ovos-dinkum-listener[extras,linux,onnx]
pip3 install ovos-phal[extras,linux]
pip3 install ovos-core[lgpl,mycroft,plugins,skills-audio,skills-essential,skills-internet,skills-media,skills-extra] ovos-dinkum-listener[extras,linux,onnx] ovos-phal[extras,linux] -C /etc/mycroft/constraints.txt

echo "Installing OVOS ggwave..."
pip3 install -U -f https://whl.smartgic.io/ ggwave
Expand Down
3 changes: 1 addition & 2 deletions build_raspOVOS_ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ set -e
# Activate the virtual environment
source /home/$USER/.venvs/ovos/bin/activate


echo "Updating splashscreen..."
cp -v /mounted-github-repo/splashscreen.png /opt/ovos/splashscreen_ca.png

# install matxa
echo "Installing Matxa TTS..."
pip install ovos-tts-plugin-matxa-multispeaker-cat
pip install ovos-tts-plugin-matxa-multispeaker-cat -C /etc/mycroft/constraints.txt
apt-get install -y automake libtool
git clone https://github.com/espeak-ng/espeak-ng.git /tmp/espeak-ng
cd /tmp/espeak-ng
Expand Down
3 changes: 1 addition & 2 deletions build_raspOVOS_gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ set -e
source /home/$USER/.venvs/ovos/bin/activate

echo "Installing GUI plugins and skills..."
pip3 install ovos-core[skills-gui]
pip3 install ovos-gui[extras]
pip3 install ovos-core[skills-gui] ovos-gui[extras] -C /etc/mycroft/constraints.txt

echo "Creating system level mycroft.conf..."
cp -v /mounted-github-repo/mycroft_gui.conf /etc/mycroft/mycroft.conf
Expand Down

0 comments on commit d758c58

Please sign in to comment.