-
Notifications
You must be signed in to change notification settings - Fork 99
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
we're on python3, so importing from future should no longer be necessary #726
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of the fortran codes are .f90 files, yet here we're using fc.compiler_f77. That won't cause any issues? Is a fortran 1990 compiler available that we should be using instead?
I think for legacy support |
This is failing because of the shallow water test, which I think was failing before. |
How can we fix that test? Should we replace mention of '77 with a function named for gfortran? I bet one exists. |
I think the compiler mentioned should be fine and I am not certain what consequences it would have to change to a f90 version. @ketch do you remember why that test is failing? |
According to the numpy docs, distutils is legacy and may be removed in a future version https://numpy.org/doc/stable/f2py/buildtools/distutils.html |
Yes, we can certainly remove those imports. But I think it would be best to do it all in one PR; otherwise we will clutter the history with dozen's of PRs just for this tiny change. |
The failing test is discussed here: #642. Let's keep the discussion of it there so it's easier to follow. |
removed __future__ from many files
Tried to squash commits and created three commits. |
Thanks, that's great! It looks like this is failing, and I'm guessing it's related to an absolute vs. relative import issue, but I don't remember what actually changes by not importing
The file |
Okay, any idea how I fix that? I don't think meson should be relying on importing from future. Do we need to do that |
I spent a half hour looking into it but I still have no idea how to fix it. |
If the build is this fragile, it will be difficult to make contributions. |
Somehow I managed to delete a whole file there. Hopefully that was the problem. |
Haha; of course that was the problem. |
Just a small PR. I might PR this repo more as I use it.