mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-28 18:15:45 +08:00
build: parse pip output correctly
This commit is contained in:
parent
2bfaa3e01c
commit
c3a668f371
@ -561,7 +561,7 @@ def checkenv() -> None:
|
||||
piplist = piplist[2:]
|
||||
pipvers: Dict[str, List[int]] = {}
|
||||
for line in piplist:
|
||||
pname, pverraw = line.split()
|
||||
pname, pverraw = line.split()[:2]
|
||||
pver = [int(x) if x.isdigit() else 0 for x in pverraw.split('.')]
|
||||
pipvers[pname] = pver
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user