From f6d32808f8486a944691d463356f46cd1c2c0940 Mon Sep 17 00:00:00 2001 From: sandbank52641 <153552626+sandbank52641@users.noreply.github.com> Date: Sun, 14 Jul 2024 17:05:03 +0200 Subject: [PATCH] use Protobuf library for Python from PyPI Even with fairly up-to-date packages, many Linux distributions have not recent enough Python Protobuf packages. It's better to use the PyPI package, which is published by Google, rather than the distribution packages. Ideally, adevtool could handle this (with pinned package version and hash, and hash-checking), but due to many users encountering this issue, this change should be reasonable for now. --- static/build.html | 34 ++++++++++++++++++++++++++++++++++ static/main.css | 27 +++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/static/build.html b/static/build.html index 5fb58a8a..ff62d0ec 100644 --- a/static/build.html +++ b/static/build.html @@ -250,6 +250,7 @@
Additional dependencies for extracting vendor files with adevtool:
Optional
+ +Run the following additional commands once to create a working + environment if your Linux distribution (such as Debian bookworm) doesn't + have the Protobuf library for Python 3 package version (5.)27.2 or later. + This installs the latest library version in a Python 3 virtual + environment.
+ +python3 -m venv venv +source venv/bin/activate +pip install protobuf +deactivate+
Optional
+ +If you have installed the Protobuf library in the Python 3 virtual + environment, activate the environment:
+ +source venv/bin/activate+
Download, extract and prepare the vendor files:
adevtool generate-all -d PIXEL_CODENAME
Replace PIXEL_CODENAME
with Pixel device codename, which is the same as build target name.
Optional
+ +If you have installed the Protobuf library in the Python 3 virtual + environment, deactivate the environment:
+ +deactivate+