Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0bacc30

Browse files
committedApr 24, 2024
Update Cython sources
1 parent 68a3a6d commit 0bacc30

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed
 

‎mpi4py_fft/fftw/fftw_xfftn.pxd

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: language_level=3str
12
cdef extern from "fftw3.h" nogil:
23

34
ctypedef struct fftw_complex_struct:
@@ -57,4 +58,4 @@ cdef extern from "fftw_planxfftn.h" nogil:
5758
int kind[],
5859
unsigned flags)
5960

60-
ctypedef void (*generic_function)(void *plan, void *_in, void *_out) nogil
61+
ctypedef void (*generic_function)(void *plan, void *_in, void *_out) noexcept nogil

‎mpi4py_fft/fftw/fftw_xfftn.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: language_level=3
1+
# cython: language_level=3str
22
from . cimport fftw_xfftn
33
cimport numpy as np
44
from .utilities import *

‎mpi4py_fft/fftw/utilities.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#cython: language_level=3
1+
#cython: language_level=3str
22

33
cimport numpy as np
44
import numpy as np

‎setup.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ def get_fftw_libs():
7979

8080
def generate_extensions(fftwlibs, force=True):
8181
"""Generate files with float and long double"""
82-
from distutils.dep_util import newer_group
82+
try:
83+
from setuptools.modified import newer_group
84+
except ImportError:
85+
try:
86+
from setuptools.dep_util import newer_group
87+
except ImportError:
88+
from distutils.dep_util import newer_group
8389

8490
for d in fftwlibs:
8591
if d == 'double':

0 commit comments

Comments
 (0)
Please sign in to comment.