Skip to content
Snippets Groups Projects
Commit 01936492 authored by Lars Bilke's avatar Lars Bilke
Browse files

fixup python cache.

parent 7efc7925
No related branches found
No related tags found
1 merge request!2Draft: Paper
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
import hpccm.config import hpccm.config
from hpccm.building_blocks.base import bb_base from hpccm.building_blocks.base import bb_base
from hpccm.building_blocks.packages import packages from hpccm.building_blocks.packages import packages
from hpccm.building_blocks.pip import pip
from hpccm.building_blocks.python import python from hpccm.building_blocks.python import python
from hpccm.common import linux_distro from hpccm.common import linux_distro
from hpccm.primitives.comment import comment from hpccm.primitives.comment import comment
...@@ -32,9 +33,10 @@ class ogs_base(bb_base): ...@@ -32,9 +33,10 @@ class ogs_base(bb_base):
"""String representation of the building block""" """String representation of the building block"""
self += comment(__doc__, reformat=False) self += comment(__doc__, reformat=False)
self += python(devel=True, python2=False) self += python(devel=True, python2=False)
pip_install = shell( self += pip(pip="pip3")
self += shell(
_arguments="--mount=type=cache,target=/root/.cache,sharing=locked", _arguments="--mount=type=cache,target=/root/.cache,sharing=locked",
commands=[f"pip3 install pre-commit cmake-format"], commands=["pip3 install pre-commit cmake-format"],
) )
self += packages(ospackages=self.__ospackages, epel=True) self += packages(ospackages=self.__ospackages, epel=True)
self += shell(commands=self.__commands) self += shell(commands=self.__commands)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment