Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-10-21 08:24:29 +02:00
parent 3dd09f447c
commit 0df77f24d3
2 changed files with 5 additions and 4 deletions

View File

@ -121,6 +121,7 @@
- libusb-1.0-0-dev
- lsof
- make
- pipx
- python3-dbus
- python3-flask
- python3-flask-cors
@ -299,9 +300,9 @@
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: install pwnagotchi wheel and dependencies
pip:
name: "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
extra_args: "--no-cache-dir"
command: "pipx install dist/pwnagotchi*.whl"
args:
chdir: /usr/local/src/pwnagotchi
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: remove pwnagotchi folder

View File

@ -126,7 +126,7 @@ def install(display, update):
source_path = "%s-%s" % (source_path, update['available'])
# setup.py is going to install data files for us
os.system("cd %s && pip3 install ." % source_path)
os.system("cd %s && pipx install ." % source_path)
return True