When importing a module needing Zstandard support, use a conditional import based on the version of Python. See below for examples. Calling the register_shutil function allows to create zstd'ed tar ...
py -m shutil copy2 ~/my/src.txt . I often find it necessary to use some shutil functionalities in scripts. It does the right thing efficiently, has more precise error ...