python310Packages.mxnet: add numpy >=1.24 compatibility patch
This commit is contained in:
parent
3d0ab76d81
commit
2e83201310
|
@ -20,6 +20,9 @@ buildPythonPackage {
|
||||||
doCheck = !isPy3k;
|
doCheck = !isPy3k;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
# Required to support numpy >=1.24 where np.bool is removed in favor of just bool
|
||||||
|
substituteInPlace python/mxnet/numpy/utils.py \
|
||||||
|
--replace "bool = onp.bool" "bool = bool"
|
||||||
substituteInPlace python/setup.py \
|
substituteInPlace python/setup.py \
|
||||||
--replace "graphviz<0.9.0," "graphviz"
|
--replace "graphviz<0.9.0," "graphviz"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue