1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
odrpack = static_library('odrpack',
[
'odrpack/d_lpk.f',
'odrpack/d_mprec.f',
'odrpack/d_odr.f',
'odrpack/dlunoc.f'
],
fortran_args: _fflag_Wno_conversion, # silence "conversion from REAL(8) to INTEGER(4)"
)
py3.extension_module('__odrpack',
'__odrpack.c',
link_with: odrpack,
include_directories: inc_np,
link_args: version_link_args,
c_args: numpy_nodepr_api,
dependencies: [blas],
install: true,
link_language: 'fortran',
subdir: 'scipy/odr'
)
python_sources = [
'__init__.py',
'_add_newdocs.py',
'_models.py',
'_odrpack.py',
'models.py',
'odrpack.py'
]
py3.install_sources(
python_sources,
subdir: 'scipy/odr'
)
subdir('tests')
|