Maarten Sneep (el 2008-02-01 a les 14:50:57 +0100) va dir:: > I'd like to link my application as much as possible with static libraries > for use on a grid. The idea is to install numpy and pytables (and other > non-standard modules) in a local directory and copy that directory to the > grid machine, adding it to the PYTHONPATH variable. > > It would be helpful if the pytables module could be linked using the > static HDF5 library, as that would save headaches of messing with > LD_RUN_PATH. Is that possible, or do you have other suggestions?
While I haven't tried with static libraries, I think that ``virtualenv`` [1]_ may be very useful for you. With it you can keep a set of packages under your control and still use those installed system-wide. You just run a copy of the Python interpreter also under your control, without having to resort to altering PYTHONPATH or mangling source code before installation. For dynamic libraries, I'd suggest that you installed them under your local directory and compiled local packages against them. If the copy running under your grid nodes happens to be in the same path, you don't even need to set LD_RUN_PATH. I've been using a setup like that for some time and I'm far happier with it than with previous hacks with PYTHONPATH. Just my two cents. .. [1] http://pypi.python.org/pypi/virtualenv/ :: Ivan Vilata i Balaguer >qo< http://www.carabos.com/ Cárabos Coop. V. V V Enjoy Data ""
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users