py-six

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/pallet-python . /
COPY --from=stagex/core-py-setuptools . /
COPY --from=stagex/core-py-installer . /
COPY --from=stagex/core-py-packaging . /
COPY --from=stagex/core-py-flit . /
COPY --from=stagex/core-py-wheel . /
COPY --from=stagex/core-py-gpep517 . /
ADD fetch/py-six-${VERSION}.tar.gz .
WORKDIR /six-${VERSION}
RUN --network=none <<-EOF
	set -eu
	python setup.py install --root /rootfs --optimize=1
	install -Dm644 LICENSE -t /rootfs/usr/share/licenses/py-six/
	find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /