-
Create your own virtual env with a
requirements.in
file.- add
h5py
in requirements file to let it resolve but we will update it later
- add
-
Directory structure
parent
|
|-src/isce3
|-build
|-install
- Relevant cmake command for building on OSX 15.1 to be run in the
build
directory
> export py3exec={path_to_virtual_env}/bin/python3
> CC=clang CXX=clang++ CXXFLAGS="-D_LIBCPP_DISABLE_AVAILABILITY" \
cmake -DPython_EXECUTABLE=$py3exec -DPYTHON_EXECUTABLE=$py3exec \
-DISCE3_FETCH_PYBIND11=NO -Dpybind11_DIR=/opt/homebrew/bin \
-DCMAKE_INSTALL_PREFIX=../install ../src/isce3
> make -j 8
> make install
- Env vars to set for use
DYLD_LIBRARY_PATH=DYLD_LIBRARY_PATH:$installdir/lib
PYTHONPATH=PYTHONPATH:$installdir/packages
- Fix h5py - make it match HDF5 exactly. From within the right virtualenv. This is needed for seamless interaction between h5py objects and ISCE3 C++ code.
python3 -m pip uninstall h5py
HDF_DIR=/opt/homebrew python3 -m pip install --no-binary=h5py h5py
- Test the installation from the build directory
> ctest