Skip to content

Commit ea5c6c9

Browse files
committed
force python package installation
provisional
1 parent 9d374b2 commit ea5c6c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openplotterSettings/backlight.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import os, sys
1919

2020
if sys.argv[1] == 'install':
21-
os.system('pip3 install rpi_backlight -U')
21+
os.system('pip3 install rpi_backlight -U --break-system-packages')
2222

2323
udevFile = '/etc/udev/rules.d/backlight-permissions.rules'
2424
if not os.path.exists(udevFile):
@@ -33,7 +33,7 @@
3333

3434
if sys.argv[1] == 'uninstall':
3535
os.system('rpi-backlight -b 100')
36-
os.system('pip3 uninstall -y rpi_backlight')
36+
os.system('pip3 uninstall -y rpi_backlight --break-system-packages')
3737
os.system('rm -f /etc/udev/rules.d/backlight-permissions.rules')
3838
os.system('udevadm control --reload-rules && udevadm trigger')
3939
os.system('rm -f /usr/share/applications/openplotter-brightness.desktop')

0 commit comments

Comments
 (0)