easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

change custom easyblock for Python to set `pythonpath` class variable to a fixed location relative to build path

Open gkaf89 opened this issue 6 months ago • 2 comments

The pythonpath variable in the python.py EasyBlock is used to create temporary directories to store build artifacts. However, there are 2 problems with the current definition of the pythonpath instance field:

  • it uses the log directory to store build artifacts, and
  • the functions that use pythonpath do not accept a full path.

The build_path() function cannot be used instead of log_path() as the function provides a full path as well. Thus we opted to hard-code a relative path with respect to the build directory.

Issue: https://github.com/easybuilders/easybuild-easyconfigs/issues/21078

gkaf89 avatar Jul 31 '24 10:07 gkaf89