Not sure when this started happening, but for the tarballs of PR #195 (see e.g. https://github.com/EESSI/staging/pull/129) I noticed that they were changing an existing Python installation. It turns out that it's because of a new .pyc file that is generated in the Python installation directory:
$ ls -l 2021.12/software/linux/aarch64/generic/software/Python/3.9.5-GCCcore-10.3.0/easybuild/python/__pycache__/
total 12
-rw-r--r-- 1 bob bob 1493 Feb 1 02:38 sitecustomize.cpython-310.pyc
-rw-r--r-- 1 bob bob 1469 Jan 19 13:08 sitecustomize.cpython-39.opt-1.pyc
-rw-r--r-- 1 bob bob 1469 Jan 8 2022 sitecustomize.cpython-39.pyc
We have run into something similar before, and added a fix for this to the installation script that should write the .pyc files to a temporary directory:
https://github.com/EESSI/software-layer/blob/main/EESSI-pilot-install-software.sh#L81
But for some reason that doesn't seem to work here.
Not sure when this started happening, but for the tarballs of PR #195 (see e.g. https://github.com/EESSI/staging/pull/129) I noticed that they were changing an existing Python installation. It turns out that it's because of a new
.pycfile that is generated in the Python installation directory:We have run into something similar before, and added a fix for this to the installation script that should write the
.pycfiles to a temporary directory:https://github.com/EESSI/software-layer/blob/main/EESSI-pilot-install-software.sh#L81
But for some reason that doesn't seem to work here.