Run the following in the build directory you made to build bpy.
cmake -S ../blender -B . -C ../build_files/cmake/config/bpy_module.cmake -DWITH_INSTALL_PORTABLE=ON -DCMAKE_INSTALL_PREFIX="$HOME/.local/lib/python3.7/site-packages"
make install
If you install bpy to the path above, i.e., with python 3.7, would simply changing python interpreter in eclipse allow you to use bpy?
If build process is affected by available python version, isn’t correct python version shipped in linux_centos7_x86_64
?
This post has working docker files though.