mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-06 06:43:53 +08:00
compile bytecode for python packages (#389)
* compile bytecode for python packages * bump up size * lil bigger
This commit is contained in:
@@ -139,7 +139,7 @@ RUN source $XDG_DATA_HOME/venv/bin/activate && \
|
||||
sed -i 's|prefix=/install|prefix='$pc'|' $pypcpath && \
|
||||
pypcpathembed=$pcpath"/python-3.12-embed.pc" && \
|
||||
sed -i 's|prefix=/install|prefix='$pc'|' $pypcpathembed && \
|
||||
MAKEFLAGS="-j$(nproc)" UV_NO_CACHE=1 UV_PROJECT_ENVIRONMENT=$XDG_DATA_HOME/venv uv sync --frozen --inexact
|
||||
MAKEFLAGS="-j$(nproc)" UV_NO_CACHE=1 UV_PROJECT_ENVIRONMENT=$XDG_DATA_HOME/venv uv sync --frozen --inexact --compile-bytecode
|
||||
|
||||
# Install nice to haves
|
||||
COPY ./userspace/install_extras.sh /tmp/agnos/
|
||||
|
||||
@@ -20,7 +20,7 @@ OUT_IMAGE="$OUTPUT_DIR/system.img"
|
||||
|
||||
# the partition is 10G, but openpilot's updater didn't always handle the full size
|
||||
# openpilot fix, shipped in 0.9.8 (8/18/24): https://github.com/commaai/openpilot/pull/33320
|
||||
ROOTFS_IMAGE_SIZE=4000M
|
||||
ROOTFS_IMAGE_SIZE=4200M
|
||||
|
||||
# Create temp dir if non-existent
|
||||
mkdir -p $BUILD_DIR $OUTPUT_DIR
|
||||
|
||||
Reference in New Issue
Block a user