Hi Daniel,
that issue was indeed related to NumPy stopping silently casting floating values to ints in the num argument of linspace(), it should be fixed in the current master.
Thank you for your packaging efforts! (The fast/slow test mode [1] is still planned (by switching to pytest), I hope it will be sooner than later.)
Note that meshio is a non-optional run-time dependence now, see [2].
r.
[1] https://github.com/sfepy/sfepy/issues/552 [2] https://github.com/sfepy/sfepy/pull/580
On 2/24/20 11:43 PM, Daniel Wheeler wrote:
Just to let you know, Sfepy is now in Nixpkgs.
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules...
Unfortunately, the build seems to be broken on master. One test fails in "tests/test_splinebox.py" with
Traceback (most recent call last): File "/nix/store/hzh4nqhzr0a86mh1dd8r806cq5sn95pn-python3.7-numpy-1.18.1/lib/python3.7/site-packages/numpy/core/function_base.py", line 117, in linspace num = operator.index(num) TypeError: 'float' object cannot be interpreted as an integer
If that test is excluded from the build then it builds. I'm assuming that this is an incompatibility between Numpy 1.18.1 and Sfepy 2019.4, which is the current Nixpkgs version of Numpy.
I'm going to repair this by simply omitting that particular test module for now.