-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade B9-Robot for 22.04 compatibility.
Yes, really... for something so simple a new release is required for each new operating system. How screwed-up is that? At least now I understand Snap and FlatPak, because the alternative can be bonkers.
- Loading branch information
1 parent
b433f3a
commit 81159d7
Showing
4 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/sh -e | ||
|
||
sudo apt -y install libsm6 libxrender1 libfontconfig1 python3.6-dev | ||
apt -y install libsm6 libxrender1 libfontconfig1 libxslt1-dev | ||
cd `dirname $0` | ||
virtualenv --python `which python3.6` . | ||
virtualenv --python `which python3` . | ||
. bin/activate | ||
pip install -r requirements.txt | ||
sed -i -e '1iimport _festival' -e '1,6{/^try:$/,/^[[:space:]]*import _festival/{d}}' lib/python3.6/site-packages/festival.py | ||
[ -d lib/python3.6/site-packages/festival.py ] && sed -i -e '1iimport _festival' -e '1,6{/^try:$/,/^[[:space:]]*import _festival/{d}}' lib/python3.6/site-packages/festival.py | ||
|
||
mkdir -p /etc/b9robot/ | ||
cp logging.conf /etc/b9robot/ | ||
chmod go+rX -R /etc/b9robot/ | ||
|
||
cp b9robot.py /usr/local/bin/ | ||
cp b9robot.service /lib/systemd/user/ | ||
systemctl --user enable b9robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
PyYAML == 5.3.1 | ||
beautifulsoup4 == 4.9.3 | ||
lxml == 4.6.2 | ||
cronyo == 0.4.2 | ||
dbus-python == 1.2.16 | ||
opencv-python-headless == 4.4.0.42 | ||
opencv-python-headless >= 4.4.0.42, < 4.8.0 | ||
PyYAML >= 5.3.1 | ||
beautifulsoup4 >= 4.9.3 | ||
lxml >= 4.6.2 | ||
cronyo >= 0.4.2 | ||
dbus-python >= 1.2.16 | ||
git+https://github.com/techiaith/pyfestival#festival | ||
pygobject == 3.38.0 | ||
xlib == 0.21 | ||
html5lib == 1.1 | ||
systemd-python == 234 | ||
playsound == 1.3.0 | ||
pygobject >= 3.38.0 | ||
xlib >= 0.21 | ||
html5lib >= 1.1 | ||
systemd-python >= 234 | ||
playsound >= 1.3.0 |