Skip to content

Commit

Permalink
sagemathgh-38983: Use meson as backend for numpy.f2py
Browse files Browse the repository at this point in the history
    
<!-- ^ 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
  • Loading branch information
Release Manager committed Dec 8, 2024
2 parents dc6b42d + d41a5fb commit fbc9ad6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/misc/inline_fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ def eval(self, x, globals=None, locals=None):

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

try:
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
Expand Down

0 comments on commit fbc9ad6

Please sign in to comment.