BtbN / FFmpeg-Builds

MIT License
7.76k stars 1.07k forks source link

Upgrade python3-distutils to python3-setuptools #363

Closed nyanmisaka closed 7 months ago

nyanmisaka commented 7 months ago

distutils (distutils package for Python 3.x) was deprecated a long time ago and will be removed in python 3.12. Upgrade to setuptools (Python3 Distutils Enhancements) instead.

See also https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/2060772

Related to #361

BtbN commented 7 months ago

I don't understand why ghcr.io/btbn/ffmpeg-builds/base:latest is suddenly "unauthorized". This has worked fine not too long ago, and comparing it to other packages that pull just fine, everything is identical.

Not sure if this PR is correct, if something needs distutils, it'll have to stay. I'm not sure why I even install it at all, but it must have been for some reason.

T-bagwell commented 7 months ago

LGTM

This can fix problem `20.71 Reading package lists... 21.01 Building dependency tree... 21.05 Reading state information... 21.06 Package python3-distutils is not available, but is referred to by another package. 21.06 This may mean that the package is missing, has been obsoleted, or 21.06 is only available from another source 21.06 21.06 E: Package 'python3-distutils' has no installation candidate

WARNING: local cache import at .cache/ghcr.io/btbn/ffmpeg-builds/base_latest not found due to err: could not read .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: open .cache/ghcr.io/btbn/ffmpeg-builds/base_latest/index.json: no such file or directory Dockerfile:4

3 | ENV DEBIAN_FRONTEND noninteractive 4 | >>> RUN \ 5 | >>> apt-get -y update && \ 6 | >>> apt-get -y dist-upgrade && \ 7 | >>> apt-get -y install build-essential yasm nasm \ 8 | >>> xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq \ 9 | >>> autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build \ 10 | >>> texinfo texi2html help2man flex bison groff \ 11 | >>> gperf itstool ragel libc6-dev zlib1g-dev libssl-dev \ 12 | >>> gtk-doc-tools gobject-introspection gawk \ 13 | >>> ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full \ 14 | >>> python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 && \ 15 | >>> apt-get -y clean && \ 16 | >>> git config --global user.email "builder@localhost" && \ 17 | >>> git config --global user.name "Builder" && \ 18 | >>> git config --global advice.detachedHead false 19 |

ERROR: failed to solve: process "/bin/sh -c apt-get -y update && apt-get -y dist-upgrade && apt-get -y install build-essential yasm nasm xxd pkgconf curl wget unzip zip git subversion mercurial rsync jq autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build texinfo texi2html help2man flex bison groff gperf itstool ragel libc6-dev zlib1g-dev libssl-dev gtk-doc-tools gobject-introspection gawk ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full python3-distutils python3-jinja2 python3-jsonschema python3-apt python-is-python3 && apt-get -y clean && git config --global user.email \"builder@localhost\" && git config --global user.name \"Builder\" && git config --global advice.detachedHead false" did not complete successfully: exit code: 100