Can I install an extension from a python script?

I’m adapting my addon to use the new extension system in Blender 4.2. I’m wondering if there is some way to install it form a python script I run from outside of Blender.

In the past, I would develop my code in a text editor and then run a python script to copy it directly into Blender’s addon directory. It looks like that won’t work any more. Is there a way to run a python script that will install and enable my addon after every time I am ready to test it?