Thanks! If anyone can give me any guidance on the matter of locating libraries on different linux flavors, I'd be grateful. I'm unfortunately basically linux-ignorant.
I think if we look for liblibrary.so.majorversion as well as liblibrary.so in the standard locations (/lib, /usr/lib, /usr/local/lib, /opt/lib) we should be ok.
New idea -- it may be better to just try to load anything that starts with "FreeImage" or "libfreeimage" (non case-sensitive). This because I notice that the default OS X makefile produces "libfreeimage.3.15.1.dylib"... This way the code will just try to load any matching file it finds, and if the loader complains then it'll move on to the next. Zach
FreeImage library downloading from github, alpha version: https://github.com/zachrahan/scikits-image/blob/freeimage-install-libs/skima... No idea how best to bake this in to bdist or install distutils commands. Zach
On Tue, Feb 7, 2012 at 3:10 PM, Zachary Pincus <zachary.pincus@yale.edu> wrote:
FreeImage library downloading from github, alpha version: https://github.com/zachrahan/scikits-image/blob/freeimage-install-libs/skima...
No idea how best to bake this in to bdist or install distutils commands.
That'll do the trick! Then we just need to do a check for whether the file has already been downloaded, and to timeout after a while. Then we can include it safely in the setup.py command. Thanks, Zach! Stéfan
New idea -- it may be better to just try to load anything that starts with "FreeImage" or "libfreeimage" (non case-sensitive). This because I notice that the default OS X makefile produces "libfreeimage.3.15.1.dylib"...
This way the code will just try to load any matching file it finds, and if the loader complains then it'll move on to the next.
https://github.com/zachrahan/scikits-image/commit/77d2ae88b5519c3b521241ad5d... This seems slightly more likely to work in more situations. I still need to test it rather more carefully though. But comments as to the general idea would be welcome. Zach
participants (2)
-
Stéfan van der Walt
-
Zachary Pincus