comparison packages.py @ 306:c72f268ee846

update pnpm + pdm
author drewp@bigasterisk.com
date Sat, 24 Aug 2024 15:07:10 -0700
parents 5f3e053ba888
children 5f8d328e32b3
comparison
equal deleted inserted replaced
305:58d8e6072dcc 306:c72f268ee846
26 server.shell(commands=[ 26 server.shell(commands=[
27 "rm -f /usr/local/bin/pnp{m,x}", 27 "rm -f /usr/local/bin/pnp{m,x}",
28 "corepack enable", 28 "corepack enable",
29 # https://github.com/pnpm/pnpm/releases 29 # https://github.com/pnpm/pnpm/releases
30 # but also https://pnpm.io/installation#compatibility 30 # but also https://pnpm.io/installation#compatibility
31 "corepack prepare 'pnpm@8.6.3' --activate", 31 "corepack prepare 'pnpm@9.8' --activate",
32 ]) 32 ])
33 33
34 34
35 def podman(): 35 def podman():
36 # frigate build wants to mount a single file from the host, which needs podman 4.5.1 36 # frigate build wants to mount a single file from the host, which needs podman 4.5.1
43 apt.packages(packages=['libsubid4', 'buildah', 'podman-docker'], latest=True) 43 apt.packages(packages=['libsubid4', 'buildah', 'podman-docker'], latest=True)
44 44
45 45
46 def pdm(): 46 def pdm():
47 # https://github.com/pdm-project/pdm/blob/main/CHANGELOG.md 47 # https://github.com/pdm-project/pdm/blob/main/CHANGELOG.md
48 server.shell(commands=["pip install --break-system-packages 'pdm==2.12.4'"]) 48 server.shell(commands=["pip install --break-system-packages 'pdm==2.18.1'"])
49 49
50 50
51 def proper_locate(): 51 def proper_locate():
52 apt.packages(packages='mlocate', present=False) 52 apt.packages(packages='mlocate', present=False)
53 if 'pi' not in host.groups and host.name not in ['prime', 'pipe']: 53 if 'pi' not in host.groups and host.name not in ['prime', 'pipe']: