See an example of self-contained youtube-dl script in
Walk the Python code surrounding the Update button to see it pulls code from
I asked for an option to use the Linux stock version which in Arch Linux is always up-to-date. I'd rather have that option just to avoid cluttering my disk with duplications. However you get the idea here, it could work fine for Debian and other slow distros. So a choice of stock distro version or local private app copy would do.