If you do not want to keep the install directory you could use "postinstallcmds" in your easyconfig to remove the build directory.
Thanks, Cormac. On Thu, Feb 23, 2017 at 2:34 PM, Maxime Boissonneault < [email protected]> wrote: > Ok, I tried it this afternoon. > > Indeed, buildininstalldir = True does keep the downloaded packages > there... but it also keeps the build directory in there, which clutters the > installation directory for no good reason. > > > Maxime > > > On 17-02-23 12:06, Maxime Boissonneault wrote: > > I did not know about that option, so I have not. > > This would presumably keep all of the PETSc configure files in place > though.... which is not really what we want for a proper install. > > Maxime > > On 17-02-23 11:01, Garvey, Cormac T wrote: > > > Have you tried. > > buildininstalldir = True > > Thanks, > Cormac. > > On Wed, Feb 22, 2017 at 6:52 PM, Maxime Boissonneault < > [email protected]> wrote: > >> Ok, indeed, after digging in the code, I see that the install_step does >> delete the install directory before installation. This breaks an >> installation of PETSc which would use the "--download" options. >> sourceinstall = True does prevent this... but it requires to install in >> the source directory. >> >> I made a pull request to modify petsc.py to give the option to perform a >> download install. The pull request is here: >> https://urldefense.proofpoint.com/v2/url?u=https-3A__github. >> com_hpcugent_easybuild-2Deasyblocks_pull_1114&d=DQIDaQ&c=54I >> ZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=F7SKamd8vCvAi_Y_ >> shtfy_IAjlYcqwsTY4RKpIb4H5Y&m=pubJ5Zx2mHR2lYVg9ErV6yOspYYZsk >> HrgbooeJnofDs&s=IQ4D8z1nAfA0H0zk2RoqU2EPrtO7wXFFrpo1gNiW-Ls&e= >> We can move further discussion to the PR. Posting here just so that >> people who may be interested can follow. >> >> Maxime >> >> >> On 17-02-22 18:04, Maxime Boissonneault wrote: >> >>> Some more info I discovered. >>> The files that PETSc downloads are actually correctly installed in the >>> final installation directory during the configure phase. However, somewhere >>> between the configure and the install phase, something (I suspect >>> EasyBuild) deletes them. Is it possible that EasyBuild deletes the content >>> of the installation directory between the configure and the install phase ? >>> >>> Maxime >>> >>> >>> >>> >>> On 17-02-22 14:13, Maxime Boissonneault wrote: >>> >>>> On 17-02-22 14:08, Kenneth Hoste wrote: >>>> >>>>> Hi Maxime, >>>>> >>>>> On 22/02/2017 17:22, Maxime Boissonneault wrote: >>>>> >>>>>> Actually, looking through the log file, I see PETSc which says to run >>>>>> make install, but easybuild runs "make" without the install option: >>>>>> >>>>>> 3693 make[2]: Leaving directory '/dev/shm/mboisson/PETSc/3.7.5 >>>>>> /iompi-2016.4/petsc-3.7.5' >>>>>> 3694 ========================================= >>>>>> 3695 make[1]: Leaving directory '/dev/shm/mboisson/PETSc/3.7.5 >>>>>> /iompi-2016.4/petsc-3.7.5' >>>>>> 3696 Now to install the libraries do: >>>>>> 3697 make PETSC_DIR=/dev/shm/mboisson/PE >>>>>> TSc/3.7.5/iompi-2016.4/petsc-3.7.5/ PETSC_ARCH=arch-linux2-c-opt >>>>>> install >>>>>> 3698 ========================================= >>>>>> 3699 >>>>>> 3700 == 2017-02-22 15:08:25,451 run.py:443 INFO cmd " make >>>>>> PETSC_DIR=/dev/shm/mboisson/PETSc/3.7.5/iompi-2016.4/petsc-3.7.5/ " >>>>>> exited with exitcode 0 and output: >>>>>> 3701 make[1]: Entering directory '/dev/shm/mboisson/PETSc/3.7.5 >>>>>> /iompi-2016.4/petsc-3.7.5' >>>>>> >>>>>> >>>>>> It runs "make install" later, but not with the arguments that PETSc >>>>>> instructs to use: >>>>>> >>>>> >>>>> Please open an issue on this, or a PR to the PETSc easyblock to fix >>>>> this issue. >>>>> >>>>> Will do... as soon as I figure out a fix. Even when running things >>>> manually I run into problems. Not sure why yet. >>>> >>>> Maxime >>>> >>> >>> >>> >> >> -- >> --------------------------------- >> Maxime Boissonneault >> Analyste de calcul - Calcul Québec, Université Laval >> Président - Comité de coordination du soutien à la recherche de Calcul >> Québec >> Team lead - Research Support National Team, Compute Canada >> Instructeur Software Carpentry >> Ph. D. en physique >> >> > > > -- > Cormac Garvey > HPC Software Consultant > Scientific Computing > Idaho National Laboratory > Ph: 208-526-6294 > > > > -- > --------------------------------- > Maxime Boissonneault > Analyste de calcul - Calcul Québec, Université Laval > Président - Comité de coordination du soutien à la recherche de Calcul Québec > Team lead - Research Support National Team, Compute Canada > Instructeur Software Carpentry > Ph. D. en physique > > > > -- > --------------------------------- > Maxime Boissonneault > Analyste de calcul - Calcul Québec, Université Laval > Président - Comité de coordination du soutien à la recherche de Calcul Québec > Team lead - Research Support National Team, Compute Canada > Instructeur Software Carpentry > Ph. D. en physique > > -- Cormac Garvey HPC Software Consultant Scientific Computing Idaho National Laboratory Ph: 208-526-6294

