Not really, and I don’t think it is a great behavior if global variables exist or not in packages depending on what other packages are loaded. You can have the variable always existing (initialized to nothing) and then set it in the __init__ of the extension if you want for example.
3 Likes