From d71307bfcc7847977d6326fd64d93fd01712d9a6 Mon Sep 17 00:00:00 2001 From: Michel Pluess Date: Thu, 28 Mar 2024 15:28:42 +0100 Subject: [PATCH] Added wsclean conda package --- .github/workflows/build_base.yml | 1 + wsclean/build.sh | 7 ++++ wsclean/conda_build_config.yaml | 11 ++++++ wsclean/meta.yaml | 67 ++++++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 wsclean/build.sh create mode 100644 wsclean/conda_build_config.yaml create mode 100644 wsclean/meta.yaml diff --git a/.github/workflows/build_base.yml b/.github/workflows/build_base.yml index e322982..2805817 100644 --- a/.github/workflows/build_base.yml +++ b/.github/workflows/build_base.yml @@ -22,6 +22,7 @@ env: # WSClean IDG_VERSION: 1.2.0 + WSCLEAN_VERSION: 3.4.0 # actual version 3.4 # additional karabo dependencies AOTOOLS_VERSION: 1.0.6 diff --git a/wsclean/build.sh b/wsclean/build.sh new file mode 100644 index 0000000..3542d1f --- /dev/null +++ b/wsclean/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +mkdir -p build +cd build +cmake -DCMAKE_INSTALL_PREFIX=$PREFIX .. +make -j 4 +make install diff --git a/wsclean/conda_build_config.yaml b/wsclean/conda_build_config.yaml new file mode 100644 index 0000000..8ca2e61 --- /dev/null +++ b/wsclean/conda_build_config.yaml @@ -0,0 +1,11 @@ +python: + - 3.9 + +boost: + - 1.74 + - 1.78 + - 1.82 + - 1.84 + +pin_run_as_build: + boost: x.x diff --git a/wsclean/meta.yaml b/wsclean/meta.yaml new file mode 100644 index 0000000..317a9bd --- /dev/null +++ b/wsclean/meta.yaml @@ -0,0 +1,67 @@ +package: + name: {{ PACKAGE_NAME|lower }} + version: {{ WSCLEAN_VERSION_ALT }} + +source: + git_url: https://gitlab.com/aroffringa/wsclean.git + # Cut off the .0 part in e.g. 3.4.0 we added just for conda build + git_tag: "v{{ WSCLEAN_VERSION[:-2] }}" + +build: + number: {{ build }} + string: py{{ py }}h{{ PKG_HASH }}_{{ build }} + +requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - cmake + - make + - boost + - casacore + - cfitsio + - everybeam + - fftw + - gsl + - hdf5 + - idg + - libblas + - liblapack + - python + + host: + - boost + - casacore + - cfitsio + - everybeam + - fftw + - gsl + - hdf5 + - idg + - libblas + - liblapack + - python + + run: + - boost + - casacore + - cfitsio + - everybeam + - fftw + - gsl + - hdf5 + - idg + - libblas + - liblapack + - python + +about: + home: https://wsclean.readthedocs.io + license: GPLv3 + summary: 'WSClean (w-stacking clean) is a fast generic widefield imager' + doc_url: https://wsclean.readthedocs.io + dev_url: https://gitlab.com/aroffringa/wsclean + +extra: + recipe-maintainers: + - michel.pluess@fhnw.ch