Yes, I understand all that...sometimes the system libraries are not what you want (you almost need a blacklist of what libraries NOT to look for), but I've found in my limited experience so far, that most of the time, the system library (I'm talking the basic ones, mostly) is what you want. My app didn't work at all on some platforms until I eliminated some of the distributed libs in favor of using the system libs.
I just thought it would be a useful thing to have; right now, I have a clean up script that eliminates certain libraries from the distribution...but the distribution would be more flexible and compatible if there was the option to use either/or. I have a wxpython app, which depends on things like font libraries and gtk. I can promise you that eliminating things like libpango and libgtk from your distro is a good thing; without it, my app would work on only a select couple of linux distros. Now, it's lighter (in terms of distribution filesize) and runs on every distribution of Linux I tried save CentOS, which uses a really old version of glibc. - Tested distributions: - Suse 11.1 - Suse 11.2 - Suse 11.3 - Kubuntu 10.04 - Kubuntu 10.10 - Ubuntu 10.10 - Fedora 13 - Fedora 14 - CentOS 5.0 (libc version is too old: 2.7 required). - CentOS 5.5 (libc version is too old: 2.7 required). - Mandriva 2010 Spring I'm just saying that what I did worked, which lead to the question that I posted. If there is a better way of accomplishing this, I would love to do it better. At any rate, I plan to write up exactly what I did to get the app working across this range of linux distributions, so that others could benefit from it...it was too much work not to write it up somewhere ;) On Thu, Dec 2, 2010 at 11:40 AM, Tim Diggins <[email protected]> wrote: > I don't think you can say that it is always "better" to use a system or a > distributed library. We're finding that (for stability's sake) we want very > particular versions of libraries, and are linking as near as we can to > statically to them - it ensures our app is insulated from abitrary userland > changes. > > On Thu, Dec 2, 2010 at 4:25 PM, Martin Zibricky <[email protected]>wrote: > >> Daniel Hyams píše v Čt 02. 12. 2010 v 10:56 -0500: >> > >> > But, I'm finding that, if the same library exists on the system on >> > which you are running, it is much better to use the system lib than >> > the distributed one. So would it be possible to link to the >> > system-wide lib (might be /usr/lib/libpango.so.2) in this case instead >> > of your own libpango.so.2? >> >> Do you thing it could be possible programmaticaly detect if the system >> lib is better than the distributed one? >> >> There is also another threat: system libraries may not be compiled with >> all the features you depend on. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PyInstaller" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<pyinstaller%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/pyinstaller?hl=en. >> >> > > > -- > ------------------------------------------------------ > > Tim Diggins > http://red56.co.uk > http://tim.teamportfolios.com/ > [email protected] > > 07515 931 642 / +447515931642 > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<pyinstaller%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. > -- Daniel Hyams [email protected] -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
