Skip to content

Commit

Permalink
#493 pre-PR version
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Jan 22, 2025
1 parent 4671bb1 commit a5d1c67
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions 493_wrf-python/wrf-python.eb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
easyblock = 'PythonBundle'

name = 'wrf-python'
version = '1.3.4.1'
version = '1.3.4.1-20241111'
local_commit = '5711683'

homepage = 'https://wrf-python.readthedocs.io'
description = """A collection of diagnostic and interpolation routines for use with output from
Expand All @@ -10,8 +11,13 @@ description = """A collection of diagnostic and interpolation routines for use w
toolchain = {'name': 'foss', 'version': '2024a'}
toolchainopts = {'pic': True}

builddependencies = [
('CMake', '3.29.3'),
('scikit-build-core', '0.10.6'),
]
dependencies = [
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('netcdf4-python', '1.7.1.post2'),
('xarray', '2024.11.0'),
('matplotlib', '3.9.2'),
Expand All @@ -24,11 +30,24 @@ use_pip = True

exts_list = [
(name, version, {
'checksums': ['e349578da8c3f108b8169c19d2186e72d79f610561f2e11c59fbf6eda3f9a2e7'],
'modulename': 'wrf',
# download latest commit with new build system - old one is not compatible with python 3.12
# see https://github.com/NCAR/wrf-python/issues/217 and https://github.com/NCAR/wrf-python/pull/242
'source_urls': ['https://github.com/NCAR/wrf-python/archive/'],
'sources': [{
'download_filename': '%s.tar.gz' % local_commit,
'filename': '%%(name)s-%%(version)s-%s.tar.gz' % local_commit,
}],
'checksums': ['b501097ae8fbf121420371b1dc8911a8900968e4d63726a454886f855db618a5'],
}),
]

sanity_pip_check = True

moduleclass = 'geo'

# E1: OK
# -> download from last commit -> old one is not compatible with py3.12 -> OK
# <- pip install wrf
# import numpy.distutils.core
# ModuleNotFoundError: No module named 'numpy.distutils'

0 comments on commit a5d1c67

Please sign in to comment.