Skip to content

Commit 0877848

Browse files
authored
pin transitive dependencies (cftime) (#222)
1 parent 2bc7f3c commit 0877848

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

gis4wrf/bootstrap.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
DEPS = [
4141
# Direct dependencies.
4242

43-
#Dependency('xarray', install='0.10.0', min=None),
4443
Dependency('f90nml', install='1.0.2', min=None),
4544

4645
# Indirect dependencies.
@@ -52,9 +51,6 @@
5251
# bugs where the latest version is binary incompatible with older versions of numpy.
5352
# And since we can't update numpy ourselves, we need to use older versions of those indirect
5453
# dependencies which are built against older versions of numpy.
55-
56-
# https://github.com/pandas-dev/pandas/issues/18967
57-
#Dependency('pandas', install='0.20.3', min=None) # for xarray
5854
]
5955
# For some packages we need to use different versions depending on the Python version used.
6056
if PY_MAJORMINOR == ('3', '6'):
@@ -63,20 +59,41 @@
6359
Dependency('netCDF4',
6460
install='1.2.9',
6561
min='None'),
62+
# dependency of netCDF4
63+
Dependency('cftime',
64+
install='1.5.1',
65+
min='None'),
6666
]
67-
# QGIS 3.16
6867
elif PY_MAJORMINOR == ('3', '7'):
6968
DEPS += [
7069
Dependency('netCDF4',
7170
install='1.4.2',
7271
min='None'),
72+
# dependency of netCDF4
73+
Dependency('cftime',
74+
install='1.5.1',
75+
min='None'),
7376
]
74-
# QGIS 3.18+
7577
elif PY_MAJORMINOR == ('3', '9'):
7678
DEPS += [
7779
Dependency('netCDF4',
7880
install='1.5.7',
7981
min='None'),
82+
# dependency of netCDF4
83+
Dependency('cftime',
84+
install='1.5.1',
85+
min='None'),
86+
]
87+
# best effort
88+
else:
89+
DEPS += [
90+
Dependency('netCDF4',
91+
install='1.*',
92+
min='None'),
93+
# dependency of netCDF4
94+
Dependency('cftime',
95+
install='1.*',
96+
min='None'),
8097
]
8198

8299
# Use a custom folder for the packages to avoid polluting the per-user site-packages.

0 commit comments

Comments
 (0)