Skip to content

Commit fbc9ad6

Browse files
author
Release Manager
committed
sagemathgh-38983: Use meson as backend for numpy.f2py <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Newer versions of numpy use meson instead of the old distutils. Needed for sagemath#37447. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38983 Reported by: Tobias Diez Reviewer(s): Dima Pasechnik
2 parents dc6b42d + d41a5fb commit fbc9ad6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sage/misc/inline_fortran.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ def eval(self, x, globals=None, locals=None):
162162

163163
# What follows are the arguments to f2py itself (appended later
164164
# just for logical separation)
165-
cmd += ['-c', '-m', name, fortran_file, '--quiet',
166-
'--f77exec=sage-inline-fortran',
167-
'--f90exec=sage-inline-fortran'] + s_lib_path + s_lib
165+
cmd += ['-c', '-m', name, fortran_file, '--quiet', '--backend', 'meson'] + s_lib_path + s_lib
168166

169167
try:
170168
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)

0 commit comments

Comments
 (0)