This is to make installation more robust (see #27763).
CC: @dimpase @sophiasage @jplab
Component: packages: experimental
Author: Matthias Koeppe
Branch/Commit: e436971
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/27855