Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLD: Adding spatial to Meson build #28

Merged
merged 11 commits into from
Jun 30, 2021
Next Next commit
resolved conflicts
  • Loading branch information
czgdp1807 committed Jun 30, 2021
commit 3d2ba012c79d1f4e7d671f463f93f675d40b3b27
1 change: 1 addition & 0 deletions scipy/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ subdir('stats')
subdir('fft')
subdir('_lib')
subdir('special')
subdir('spatial')
subdir('cluster')
subdir('constants')
subdir('fftpack')
Expand Down
41 changes: 41 additions & 0 deletions scipy/spatial/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
qhull_headers = ['qhull_src/src/mem_r.h',
'qhull_src/src/poly_r.h',
'qhull_src/src/io_r.h',
'qhull_src/src/qhull_ra.h',
'qhull_src/src/merge_r.h',
'qhull_src/src/user_r.h',
'qhull_src/src/qset_r.h',
'qhull_src/src/random_r.h',
'qhull_src/src/libqhull_r.h',
'qhull_src/src/geom_r.h',
'qhull_src/src/stat_r.h']

qhull_src = ['qhull_src/src/poly_r.c',
'qhull_src/src/stat_r.c',
'qhull_src/src/merge_r.c',
'qhull_src/src/userprintf_r.c',
'qhull_src/src/userprintf_rbox_r.c',
'qhull_src/src/usermem_r.c',
'qhull_src/src/geom_r.c',
'qhull_src/src/libqhull_r.c',
'qhull_src/src/user_r.c',
'qhull_src/src/random_r.c',
'qhull_src/src/geom2_r.c',
'qhull_src/src/mem_r.c',
'qhull_src/src/global_r.c',
'qhull_src/src/poly2_r.c',
'qhull_src/src/io_r.c',
'qhull_src/src/rboxlib_r.c',
'qhull_src/src/qset_r.c']

# TODO: Add c_args: numpy_nodepr_api, once NumPy API usage is corrected.
qhull = py3.extension_module('qhull',
qhull_headers + ['qhull.pyx', 'qhull_misc.h', 'qhull_misc.c'] + qhull_src,
include_directories: [incdir_numpy, '../_lib', '../_build_utils/src'],
dependencies: [py3_dep],
install : true,
subdir : 'scipy/spatial')
czgdp1807 marked this conversation as resolved.
Show resolved Hide resolved


# subdir('tests')
# subdir('transform')