Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install h5py via spack #69

Open
dsschult opened this issue Jun 3, 2024 · 1 comment
Open

install h5py via spack #69

dsschult opened this issue Jun 3, 2024 · 1 comment
Milestone

Comments

@dsschult
Copy link
Collaborator

dsschult commented Jun 3, 2024

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 dsschult added this to the py3-v4.4.0 milestone Jun 3, 2024
@dsschult
Copy link
Collaborator Author

dsschult commented Jun 6, 2024

As a workaround for py3-v4.3.0, you can do:

  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
  1. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant