As discussed in T326668, we want to move away from using a venv generated locally on the deploy server when updating Scap.
As it turns out, we already have several images available to build Python wheels for different Debian targets: https://gerrit.wikimedia.org/r/plugins/gitiles/operations/docker-images/production-images/+/refs/heads/master/images/python-build. Leveraging these, it shouldn't be too complicated to modify the current installation behavior to use wheels in order to avoid the above-mentioned problem.