Python linker

tac-tics tactics40 at gmail.com
Tue Jul 18 09:45:19 EDT 2006


byteschreck at googlemail.com wrote:
> I love python - I use it as a utility language to complement my C#
> programming every day. However, the reason I do not use it as my
> primary language is - surprise, surprise - not its lack of static type
> checking, but the size of standalone executes  (which embed the python
> runtime).
>
> Would it be possible to link only the used functions into your
> resulting executable? After all, a typical application might only use
> 20% of everything that is in the Python .dlls.
>
> The same applies to wxPython - it would be great if you could only link
> in what you need. Would it be possible to write such linkers at all
> (maybe based on GCC)?

For your distribution, just move your DLLs to the appropriate system
folder. That's what DLLs do. You throw them in system32, forget they
were there in the first place, and the Linker Troll does the rest for
you.




More information about the Python-list mailing list