[lldb] Move finish_swig logic into a function in the binding dir

Move the finish_swig logic into a function in the bindings directory. By
making this a function I can reuse the logic internally where we ship
two Python versions and therefore need to finish the bindings twice.

GitOrigin-RevId: 9a3dbc972322413045bb5672b0fd3ba8c216c987
2 files changed