py-setuptools-scm
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-py-build . /
COPY --from=stagex/core-py-flit . /
COPY --from=stagex/core-py-installer . /
COPY --from=stagex/core-py-packaging . /
COPY --from=stagex/core-py-gpep517 . /
COPY --from=stagex/core-py-setuptools . /
COPY --from=stagex/core-py-toml . /
COPY --from=stagex/core-py-wheel . /
COPY --from=stagex/core-python . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-libffi . /
ADD fetch/py-setuptools-scm-${VERSION}.tar.gz .
WORKDIR /setuptools_scm-${VERSION}/
ENV SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
RUN --network=none <<-EOF
set -eu
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
python -m installer -d /rootfs .dist/*.whl
find /rootfs | grep -E "(/**pycache**$|.pyc$|.pyo$)" | xargs rm -rf
install -vDm644 -t /rootfs/usr/share/licenses/py-setuptools-scm LICENSE
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!