Script to get top-level packages from source tree

I should share my Gist from Oct 2022 here, which handles namespace packages as well as .data directory magic, when someone uses that.

I had a bit of deja-vu, and realised we’ve discussed this specific topic before and I posted this link theere too.