Update for bookworm release

This commit is contained in:
Jeroen Oudshoorn
2023-12-15 11:25:57 +01:00
parent 0c47f3b83d
commit 112ec7b4a2
3 changed files with 10 additions and 14 deletions

2
.idea/misc.xml generated
View File

@ -3,5 +3,5 @@
<component name="Black"> <component name="Black">
<option name="sdkName" value="Python 3.11 (pwnagotchi)" /> <option name="sdkName" value="Python 3.11 (pwnagotchi)" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pwnagotchi-torch)" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pwnagotchi-torch-bookworm)" project-jdk-type="Python SDK" />
</project> </project>

View File

@ -336,16 +336,6 @@
git: git:
repo: https://github.com/jayofelony/pwnagotchi-torch.git repo: https://github.com/jayofelony/pwnagotchi-torch.git
dest: /usr/local/src/pwnagotchi dest: /usr/local/src/pwnagotchi
register: pwnagotchigit
# is this even necessary? Can't we just link from /home/pi/pwnagotchi to /usr/local/{bin,lib,etc}
# then just git update in the home dir and encourage hacking?
# make owned by pi.pi, and custom plugins.
- name: build pwnagotchi wheel
command: "python3 setup.py sdist bdist_wheel"
args:
chdir: /usr/local/src/pwnagotchi
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: download torch whl - name: download torch whl
get_url: get_url:
@ -360,14 +350,20 @@
- name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels - name: install 32-bit pwnagotchi wheel and dependencies with 32-bit torch wheels
pip: pip:
name: name:
- "{{ lookup('fileglob', '/usr/local/src/pwnagotchi/dist/pwnagotchi*.whl') }}"
- "{{ packages.torch.url }}" - "{{ packages.torch.url }}"
- "{{ packages.torchvision.url }}" - "{{ packages.torchvision.url }}"
extra_args: "--no-cache-dir --break-system-packages" extra_args: "--no-cache-dir --break-system-packages"
environment: environment:
QEMU_CPU: arm1176 QEMU_CPU: arm1176
QEMU_UNAME: "{{ kernel.full }}" QEMU_UNAME: "{{ kernel.full }}"
when: (pwnagotchigit.changed) or (pip_packages['pwnagotchi'] is undefined) or (pip_packages['pwnagotchi'] != pwnagotchi_version)
- name: build pwnagotchi wheel
command: "pip install . --no-cache-dir --break-system-packages"
args:
chdir: /usr/local/src/pwnagotchi
environment:
QEMU_CPU: arm1176
QEMU_UNAME: "{{ kernel.full }}"
- name: create /usr/local/share/pwnagotchi/ folder - name: create /usr/local/share/pwnagotchi/ folder
file: file:

View File

@ -342,7 +342,7 @@
dest: /usr/local/src/pwnagotchi dest: /usr/local/src/pwnagotchi
- name: build pwnagotchi wheel - name: build pwnagotchi wheel
command: "pip install . --break-system-packages" command: "pip install . --no-cache-dir --break-system-packages"
args: args:
chdir: /usr/local/src/pwnagotchi chdir: /usr/local/src/pwnagotchi