3RNN/Lib/site-packages/numpy/f2py/_backends/__init__.py
2024-05-26 19:49:15 +02:00

10 lines
299 B
Python

def f2py_build_generator(name):
if name == "meson":
from ._meson import MesonBackend
return MesonBackend
elif name == "distutils":
from ._distutils import DistutilsBackend
return DistutilsBackend
else:
raise ValueError(f"Unknown backend: {name}")