Hmm, this is not a bad idea. It is hacky, but probably not so bad.
Also a good suggestion. I think eventually we’ll need some kind of spec file for fully customized builds, something akin to Python’s disttools, since many games will have highly customized needs.
We actually do need to link to Python here, since we are building a Python runtime. Linking with pystub would break things horribly. Eventually, pfreeze will have to be a lot more like makepanda, and do a better job of automatically figuring out the appropriate compile and link lines.
Ah, a good point. Of course, these filenames are not legitimate Python module names anyway, for a similar reason (because they’re not valid as Python symbol names). They can only be loaded from the command line, where their name gets changed to “main” anyway. Unless Python has a trick here I’m not aware of.