khiops icon indicating copy to clipboard operation
khiops copied to clipboard

Drivers location for conda environment

Open bruno-at-orange opened this issue 1 year ago • 2 comments

On Linux the khiops drivers are located on /usr/lib. It is hardcoded in Khiops, it looks for drivers in this directory only. We have to discuss how to manage this on conda environments.

bruno-at-orange avatar May 24 '24 13:05 bruno-at-orange

A proposal: A new environment variable in khiops_env: KHIOPS_DRIVERS_LOCATION. If it is set, Khiops will use it to looking for the drivers. If not, Khiops will looking for the drivers in the default location (/usr/lib in windows). On conda, KHIOPS_DRIVERS_LOCATION is set to $CONDA_PREFIX/lib

bruno-at-orange avatar Jul 30 '24 13:07 bruno-at-orange

KHIOPS_DRIVERS_LOCATION can be set at post-install, including for Conda, via the post-link.sh script on Linux and post-link.bat on Windows.

popescu-v avatar Aug 01 '24 12:08 popescu-v

We still need to tackle the "conda-based" environments like Colab where $CONDA_PREFIX is not defined: should we say that this is computed just as dirname $(dirname $(which khiops-env)) (assuming that khiops-env is in the right bin directory)?

In this case (if we make sure khiops-env is installed in the correct bin directory), we could make do without $CONDA_PREFIX in all Conda-like (Conda, Conda-based) environments, couldn't we?

popescu-v avatar Aug 20 '24 15:08 popescu-v