[Pythonmac-SIG] Someone had PIL trouble on i386 10.4.6 Python 2.4 IIRC--I succeeded this evening
Christopher Barker
Chris.Barker at noaa.gov
Thu Apr 20 00:53:00 CEST 2006
Bob Ippolito wrote:
> The libs should all be statically linked to the extensions, they
> shouldn't be separate in the installer.
Ronald Oussoren wrote:
> I'd prefer to have fully self contained packages, and preferably
> eggs at that. Having a shared libary makes it *harder* to independendly
> update extensions using libpng or libfreetype.
No one answered my question directly, but both Bob and Ronald have spoken:
It's better for each package to statically link any libs it needs
(unless Apple provides them), even though that means that a given python
program may well end up using three copies of the same lib.
Just to be totally clear: Is there any problem with the same program
using three slightly different versions of the same lib?
> I'll have to package up my package build script one of these days ;-)
What does it do? Something different than bdist_mpkg ?
Daniel Lord wrote:
> I built Universal jpeg-6b, freetype2, and zlib for my current project
> of Universal PIL. I can add libpng in easily so I'll do it.
> So that makes jpeg, png, freetype, and zlib. What else?
Those are the ones I need at the moment. Thanks! I guess a zip archive
of the collection would be the best way to get it out there.
> I have successfully packaged up a Universal PIL for 2.4 (thanks for
> the tips Bob;-). Packaged--not tested yet on PPC and Intel so I am
> closer to releasing it.
Post a link to it here when you are ready so we can test it.
Maybe it would be helpful to have a standard way to link static libs
with our packages. What I've done for matplotlib is create a
"StaticLibs" directory at the same level as the setup./py, then hacked
the setup.py to include it in the linking (and header) paths.
I'll probably create one that has all of the above libs in it, then I
can add a symlink to it for each package I'm trying to build.
If anyone has any better ideas, I'd be glad to hear them.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list