GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — BLD,BUG: quadmath required where available [f2py] by HaoZeke · Pull Request #25073 · numpy/numpy Conversation
Member
Closes gh-25000. There's a longer explanation in the issue comment but essentially, for the most common toolchain ( Also updates the documentation with supported compiler toolchains.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1e5ccb8 to
929f239
Compare
@mattip a small update, this PR is "sort of" tested in #25111. "sort of" because since #9673 back in 2017 none of the (compiled) F2PY tests are actually run on Windows. However I did test them manually, with a compatible toolchain, something which is hard to guarantee on the CI without |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't understand. We should be testing this. #9673 is a still-open issue. We have the rtools toolchain on windows with a fortran compiler specifically for tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There are two problems here, firstly that (as noted) the F2PY tests have long been skipping all compiled Fortran module tests, ^--- This in itself isn't really an issue, I believe #9673 should probably be defunct with Compiler detectionOffloading the build step to
So what needs to happen is that we would need to propagate CLI arguments as environment variables through to all the Now even assuming we should modify the frontend to pass environment variables over to To me, it seems like it would dampen much of the benefits we gained (offloading the build complexity, not tracking compilers etc.) from the switch to CI TestingThis doesn't mean it is impossible to test on CI, just that the current interface is too rigid for it, and that the code shouldn't be bent out of shape just to satisfy the unit testing requirement. Instead, I believe the solution is to have a new CI job, where (some) Perhaps this should be moved to an issue of its own? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We know what compiler is present on CI, we don't have to guess.
I opened #25134 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @HaoZeke |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Not quite, you can supply a machine file to point at any binary: https://mesonbuild.com/Machine-files.html#binaries. This is for example what |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@HaoZeke I see that this has been merged and #25000 has been closed. So not sure what the right place is to mention this. However, for The following patch fixes it: diff --git a/numpy/f2py/_backends/_meson.py b/numpy/f2py/_backends/_meson.py index 3176a5e08..14f9ace2b 100644 --- a/numpy/f2py/_backends/_meson.py +++ b/numpy/f2py/_backends/_meson.py @@ -7,6 +7,7 @@ from ._backend import Backend from string import Template +from itertools import chain import warnings @@ -84,6 +85,7 @@ def __init__(self, *args, **kwargs): def _move_exec_to_root(self, build_dir: Path): walk_dir = Path(build_dir) / self.meson_build_dir path_objects = walk_dir.glob(f"{self.modulename}*.so") + path_objects = chain(path_objects, walk_dir.glob(f"{self.modulename}*.pyd")) for path_object in path_objects: shutil.move(path_object, Path.cwd()) Should I open a new bug report or a pull request (seems silly for 2 lines of code)? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Actually a pull request would be great (we never have any patches committed to master) :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
BUG:f2py -c does not work on Windows with meson (Python 3.12)
There was an error while loading. Please reload this page.