Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{astro}[foss/2022a,foss/2023b] Casacore v3.5.0 - move download of data files to source step #22201

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions easybuild/easyconfigs/c/casacore/casacore-3.5.0-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ Thus user's can update them.

toolchain = {'name': 'foss', 'version': '2022a'}

source_urls = ['https://github.com/casacore/casacore/archive']
sources = ['v%(version)s.tar.gz']
checksums = [
'63f1c8eff932b0fcbd38c598a5811e6e5397b72835b637d6f426105a183b3f91', # v3.5.0.tar.gz
sources = [
{
'filename': 'v%(version)s.tar.gz',
'source_urls': ['https://github.com/%(name)s/%(name)s/archive'],
},
{
'filename': 'WSRT_Measures.ztar',
'source_urls': ['ftp://anonymous@ftp.astron.nl/outgoing/Measures'],
'extract_cmd': 'tar xfvz %s --one-top-level=%(installdir)s/data',
}
]

# Install casacore data
postinstallcmds = [
'wget --retry-connrefused ftp://anonymous@ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar' +
' -O /tmp/WSRT_Measures.ztar' +
' && tar xfvz /tmp/WSRT_Measures.ztar --one-top-level=%(installdir)s/data'
checksums = [
{'v3.5.0.tar.gz': '63f1c8eff932b0fcbd38c598a5811e6e5397b72835b637d6f426105a183b3f91'},
{'WSRT_Measures.ztar': '73cb1c9b969336bf30d66f306a530f7d5af8c6b30ff63868d4c7055ac769a1f6'},
]

builddependencies = [
Expand Down
28 changes: 15 additions & 13 deletions easybuild/easyconfigs/c/casacore/casacore-3.5.0-foss-2023b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@ Thus user's can update them.

toolchain = {'name': 'foss', 'version': '2023b'}

source_urls = ['https://github.com/%(name)s/%(name)s/archive']
sources = ['v%(version)s.tar.gz']
sources = [
{
'filename': 'v%(version)s.tar.gz',
'source_urls': ['https://github.com/%(name)s/%(name)s/archive'],
},
{
'filename': 'WSRT_Measures.ztar',
'source_urls': ['ftp://anonymous@ftp.astron.nl/outgoing/Measures'],
'extract_cmd': 'tar xfvz %s --one-top-level=%(installdir)s/data',
casparvl marked this conversation as resolved.
Show resolved Hide resolved
}
]
patches = ['casacore-3.5.0-add-C-style-header-for-GCC-13.1.patch']
checksums = [
'63f1c8eff932b0fcbd38c598a5811e6e5397b72835b637d6f426105a183b3f91', # casacore-3.5.0.tar.gz
'7b35d21cd654a7a215d604310f5372319ad21b6261f4a7ae038912b97ef22983', # add-C-style-header-for-GCC-13.1.patch
{'v3.5.0.tar.gz': '63f1c8eff932b0fcbd38c598a5811e6e5397b72835b637d6f426105a183b3f91'},
{'WSRT_Measures.ztar': '73cb1c9b969336bf30d66f306a530f7d5af8c6b30ff63868d4c7055ac769a1f6'},
{'casacore-3.5.0-add-C-style-header-for-GCC-13.1.patch':
'7b35d21cd654a7a215d604310f5372319ad21b6261f4a7ae038912b97ef22983'},
]

builddependencies = [
Expand All @@ -39,15 +50,6 @@ configopts = '-DBUILD_PYTHON=NO -DBUILD_PYTHON3=YES -Wno-dev -DCXX11="ON" '
configopts += '-DDATA_DIR=%(installdir)s/data -DUSE_OPENMP=ON -DUSE_HDF5=ON '
configopts += '-DUSE_MPI=ON '

local_download_cmd = 'wget --retry-connrefused ftp://anonymous@ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar '
local_download_cmd += '-O /tmp/WSRT_Measures.ztar '

# Install casacore data
postinstallcmds = [
local_download_cmd,
"tar xfvz /tmp/WSRT_Measures.ztar --one-top-level=%(installdir)s/data",
]

sanity_check_paths = {
'files': [
'lib/libcasa_casa.%s' % SHLIB_EXT,
Expand Down