WIPACrepo / cvmfs

CVMFS repository for IceCube/WIPAC
0 stars 5 forks source link

install h5py via spack #69

Open dsschult opened 3 months ago

dsschult commented 3 months ago

h5py via pip now installs its own hdf5 library, which is a different version than what spack installs. Do both installs via spack to keep them unified.

dsschult commented 3 months ago

As a workaround for current users, you can:

  1. Create your own virtualenv, then do any work inside of that (whether that's building icetray or installing other python libraries). You may need to edit your PYTHONPATH to prefer the virtualenv over CVMFS.

    HDF5_DIR=$SROOT/spack/opt/spack/linux-centos7-x86_64_v2/gcc-13.1.0/hdf5-1.14.0-4p2djysy6f7vful3egmycsguijjddkah pip install --no-binary=h5py h5py -U
  2. Or alternatively, install h5py directly into the metaproject's lib dir:

    HDF5_DIR=$SROOT/spack/opt/spack/linux-centos7-x86_64_v2/gcc-13.1.0/hdf5-1.14.0-4p2djysy6f7vful3egmycsguijjddkah pip install --no-binary=h5py h5py -U -r $I3_BUILD/lib