shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

Barry barry at barrys-emacs.org
Thu Oct 24 18:44:43 EDT 2024


> On 24 Oct 2024, at 15:07, Christian Buhtz via Python-list <python-list at python.org> wrote:
> 
> On one hand Fedora seems to use a tool called "mock" to build packages in a chroot environment.
> On the other hand the test suite of "Back In Time" does read and write to the real file system.

I am a Fedora packager and can help explain what is the tools are doing.

Mock runs the build in a chroot env that allows for reproducible clean room builds.
Sort like a container.

This is nothing to do with the python mock package.

What do you mean by the real file sustem?

You cannot write to the /usr file system. Is that what your tests do?
If so that needs changing.

Barry




More information about the Python-list mailing list