Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions scripts/fetch-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
# SPDX-FileCopyrightText: Copyright (C) 2026 unlucio and the Bespok3d contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Fills wheels/ with the daemon's runtime packages built for the printer, so enrollment installs
# them with the package index switched off and the printer needs no internet connection.
#
# Run on a workstation with internet access whenever the runtime packages change, then commit what
# it writes.
set -eu

# The printer runs CPython 3.11 on aarch64 against glibc, so the wheels are resolved for that target
# rather than for the workstation running this script.
PYTHON_VERSION=311
PLATFORM=manylinux2014_aarch64

cd "$(dirname "$0")/.."

python3 -m pip download \
--only-binary=:all: \
--implementation cp \
--python-version "$PYTHON_VERSION" \
--abi "cp$PYTHON_VERSION" \
--platform "$PLATFORM" \
--dest wheels \
fastapi 'uvicorn[standard]' python-multipart

echo
echo "wheels/ now holds:"
ls -1 wheels
Binary file added wheels/annotated_doc-0.0.5-py3-none-any.whl
Binary file not shown.
Binary file added wheels/annotated_types-0.8.0-py3-none-any.whl
Binary file not shown.
Binary file added wheels/anyio-4.14.2-py3-none-any.whl
Binary file not shown.
Binary file added wheels/click-8.4.2-py3-none-any.whl
Binary file not shown.
Binary file added wheels/fastapi-0.141.1-py3-none-any.whl
Binary file not shown.
Binary file added wheels/h11-0.16.0-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file added wheels/idna-3.18-py3-none-any.whl
Binary file not shown.
Binary file added wheels/pydantic-2.13.4-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file added wheels/python_dotenv-1.2.2-py3-none-any.whl
Binary file not shown.
Binary file added wheels/python_multipart-0.0.32-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file added wheels/starlette-1.4.1-py3-none-any.whl
Binary file not shown.
Binary file added wheels/typing_extensions-4.16.0-py3-none-any.whl
Binary file not shown.
Binary file added wheels/typing_inspection-0.4.2-py3-none-any.whl
Binary file not shown.
Binary file added wheels/uvicorn-0.52.1-py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading