py-distlib
Details
Source
FROM stagex/pallet-python AS build
ARG VERSION
ADD fetch/py-distlib-${VERSION}.tar.gz .
WORKDIR /distlib-${VERSION}/
RUN --network=none <<-EOF
set -eu
python -m build --wheel --skip-dependency-check --no-isolation
python -m installer -d /rootfs dist/*.whl
install -Dm0644 -t /rootfs/usr/share/license/py-distlib/ LICENSE.txt
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /