]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
container: stop deleting python generated files
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 8 Feb 2025 20:03:32 +0000 (15:03 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 8 Feb 2025 20:08:50 +0000 (15:08 -0500)
commit0f178e61de52c6a0b757f8f6937340c002e66c73
tree978fa8ae90f2e096145377d78fd4c36954d4235f
parentbf9b8d36aba3c7a8c7a3ecfc4d00359985e745b6
container: stop deleting python generated files

Stop deleting the python generated files (pyc, pyo) that RPM packages
have installed. At some point in the misty past someone thought it would
be a good idea to remove these. This practice got carried over to the
new in-tree Containerfile. IMO this is probably due to a thought to save
space, but if that's the case then the RPMs should not be carrying them
either. Plus, not having them is going to slow python down as it needs
to compile every py file that gets loaded. Let's be consistent: if the
RPMs have pyc and pyo files then they should be in the image - if
they're bad or too big they should not be in the RPMs either, right?

This has the pleasant side effect of making `rpm -Va` inside the image
happier.

Fixes: https://tracker.ceph.com/issues/69869
Signed-off-by: John Mulligan <jmulligan@redhat.com>
container/Containerfile