2222import logging # pylint: disable=unused-import
2323import unittest
2424
25- from helpers import centos , docker , ppc64le , ubuntu , x86_64
25+ from helpers import aarch64 , centos , docker , ppc64le , ubuntu , x86_64
2626
2727from hpccm .building_blocks .conda import conda
2828
@@ -44,15 +44,15 @@ def test_defaults_ubuntu(self):
4444 ca-certificates \
4545 wget && \
4646 rm -rf /var/lib/apt/lists/*
47- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://repo.anaconda.com/miniconda/Miniconda3-py310_23 .1.0-1 -Linux-x86_64.sh && \
48- bash /var/tmp/Miniconda3-py310_23 .1.0-1 -Linux-x86_64.sh -b -p /usr/local/anaconda && \
47+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://repo.anaconda.com/miniconda/Miniconda3-py312_25 .1.1-2 -Linux-x86_64.sh && \
48+ bash /var/tmp/Miniconda3-py312_25 .1.1-2 -Linux-x86_64.sh -b -p /usr/local/anaconda && \
4949 /usr/local/anaconda/bin/conda init && \
5050 ln -s /usr/local/anaconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
5151 . /usr/local/anaconda/etc/profile.d/conda.sh && \
5252 conda activate base && \
5353 conda install -y numpy && \
5454 /usr/local/anaconda/bin/conda clean -afy && \
55- rm -rf /var/tmp/Miniconda3-py310_23 .1.0-1 -Linux-x86_64.sh''' )
55+ rm -rf /var/tmp/Miniconda3-py312_25 .1.1-2 -Linux-x86_64.sh''' )
5656
5757 @x86_64
5858 @centos
@@ -66,15 +66,37 @@ def test_defaults_centos(self):
6666 ca-certificates \
6767 wget && \
6868 rm -rf /var/cache/yum/*
69- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://repo.anaconda.com/miniconda/Miniconda3-py310_23 .1.0-1 -Linux-x86_64.sh && \
70- bash /var/tmp/Miniconda3-py310_23 .1.0-1 -Linux-x86_64.sh -b -p /usr/local/anaconda && \
69+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://repo.anaconda.com/miniconda/Miniconda3-py312_25 .1.1-2 -Linux-x86_64.sh && \
70+ bash /var/tmp/Miniconda3-py312_25 .1.1-2 -Linux-x86_64.sh -b -p /usr/local/anaconda && \
7171 /usr/local/anaconda/bin/conda init && \
7272 ln -s /usr/local/anaconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
7373 . /usr/local/anaconda/etc/profile.d/conda.sh && \
7474 conda activate base && \
7575 conda install -y numpy && \
7676 /usr/local/anaconda/bin/conda clean -afy && \
77- rm -rf /var/tmp/Miniconda3-py310_23.1.0-1-Linux-x86_64.sh''' )
77+ rm -rf /var/tmp/Miniconda3-py312_25.1.1-2-Linux-x86_64.sh''' )
78+
79+ @aarch64
80+ @centos
81+ @docker
82+ def test_aarch64 (self ):
83+ """Default conda building block"""
84+ c = conda (eula = True , packages = ['numpy' ], version = '25.1.1-2' )
85+ self .assertEqual (str (c ),
86+ r'''# Anaconda
87+ RUN yum install -y \
88+ ca-certificates \
89+ wget && \
90+ rm -rf /var/cache/yum/*
91+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://repo.anaconda.com/miniconda/Miniconda3-py312_25.1.1-2-Linux-aarch64.sh && \
92+ bash /var/tmp/Miniconda3-py312_25.1.1-2-Linux-aarch64.sh -b -p /usr/local/anaconda && \
93+ /usr/local/anaconda/bin/conda init && \
94+ ln -s /usr/local/anaconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
95+ . /usr/local/anaconda/etc/profile.d/conda.sh && \
96+ conda activate base && \
97+ conda install -y numpy && \
98+ /usr/local/anaconda/bin/conda clean -afy && \
99+ rm -rf /var/tmp/Miniconda3-py312_25.1.1-2-Linux-aarch64.sh''' )
78100
79101 @ppc64le
80102 @ubuntu
0 commit comments