In some scripting languages like Ruby or Python, you install the libraries at the system level. This combined with a good package manager (e.g. apt on Debian) will keep the size of your software small, since it can share the libraries with others.
But not much difference in terms of size at runtime.
It's mostly a developer incentive issue more than framework or OS.