8000 MAINT: Less absolute paths, update setup.py [f2py] · numpy/numpy@beaf8db · GitHub
[go: up one dir, main page]

Skip to content

Commit beaf8db

Browse files
committed
MAINT: Less absolute paths, update setup.py [f2py]
1 parent 12d386f commit beaf8db

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

numpy/f2py/f2py2e.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from . import f90mod_rules
2929
from . import __version__
3030
from . import capi_maps
31-
from . import _backends
31+
from numpy.f2py._backends import f2py_build_generator
3232

3333
f2py_version = __version__.version
3434
numpy_version = __version__.version
@@ -598,7 +598,7 @@ def run_compile():
598598
sys.argv.pop(backend_index)
599599
else:
600600
backend_key = 'distutils'
601-
build_backend = _backends.f2py_build_generator(backend_key)
601+
build_backend = f2py_build_generator(backend_key)
602602

603603
modulename = 'untitled'
604604
sources = sys.argv[1:]

numpy/f2py/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@
2626
def configuration(parent_package='', top_path=None):
2727
config = Configuration('f2py', parent_package, top_path)
2828
config.add_subpackage('tests')
29+
config.add_subpackage('_backends')
2930
config.add_data_dir('tests/src')
3031
config.add_data_files(
3132
'src/fortranobject.c',
32-
'src/fortranobject.h')
33+
'src/fortranobject.h',
34+
'backends/src/meson.build.src',
35+
)
3336
config.add_data_files('*.pyi')
3437
return config
3538

0 commit comments

Comments
 (0)
0