Skip to content
Snippets Groups Projects
Commit 16ee6089 authored by calrama's avatar calrama
Browse files

[centos] Add xtensor and xtensor-python

parent 5017c2d3
Branches
No related tags found
No related merge requests found
Pipeline #34600 passed
Pipeline: interfaces

#34602

    Pipeline: behavior_loader

    #34601

      ...@@ -426,3 +426,59 @@ RUN python3.8 -m pip --no-cache-dir install \ ...@@ -426,3 +426,59 @@ RUN python3.8 -m pip --no-cache-dir install \
      twine \ twine \
      pytest \ pytest \
      h5py h5py
      # xsimd
      RUN name=xsimd && \
      version=7.4.9 && \
      cd /tmp && \
      curl -sSL https://github.com/xtensor-stack/${name}/archive/${version}.tar.gz -o ${name}-${version}.tar.gz && \
      tar -xf ${name}-${version}.tar.gz && \
      cd ${name}-${version} && \
      cmake -S. -B build -G Ninja \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
      && \
      ninja -C build install && \
      cd .. && \
      rm -rf ${name}-${version}*
      # xtl
      RUN name=xtl && \
      version=0.7.0 && \
      cd /tmp && \
      curl -sSL https://github.com/xtensor-stack/${name}/archive/${version}.tar.gz -o ${name}-${version}.tar.gz && \
      tar -xf ${name}-${version}.tar.gz && \
      cd ${name}-${version} && \
      cmake -S. -B build -G Ninja \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
      && \
      ninja -C build install && \
      cd .. && \
      rm -rf ${name}-${version}*
      # xtensor
      RUN name=xtensor && \
      version=0.23.0 && \
      cd /tmp && \
      curl -sSL https://github.com/xtensor-stack/${name}/archive/${version}.tar.gz -o ${name}-${version}.tar.gz && \
      tar -xf ${name}-${version}.tar.gz && \
      cd ${name}-${version} && \
      cmake -S. -B build -G Ninja \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
      && \
      ninja -C build install && \
      cd .. && \
      rm -rf ${name}-${version}*
      # xtensor-python
      RUN name=xtensor-python && \
      version=0.25.0 && \
      cd /tmp && \
      curl -sSL https://github.com/xtensor-stack/${name}/archive/${version}.tar.gz -o ${name}-${version}.tar.gz && \
      tar -xf ${name}-${version}.tar.gz && \
      cd ${name}-${version} && \
      cmake -S. -B build -G Ninja \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
      && \
      ninja -C build install && \
      cd .. && \
      rm -rf ${name}-${version}*
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Please register or to comment