Skip to content

Commit

Permalink
MAINT: Try static again, move meson files around
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Oct 1, 2023
1 parent 8a99a9f commit 76c7af1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 27 deletions.
27 changes: 0 additions & 27 deletions scipy/_lib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -150,30 +150,3 @@ py3.install_sources(

subdir('_uarray')
subdir('tests')

# Setup the highs library
highs_proj = subproject('highs',
default_options : ['with_pybind11=True'])
highs_dep = highs_proj.get_variable('highs_dep')
highspy_py = highs_proj.get_variable('highspy_py')
highspy_cpp = highs_proj.get_variable('highspy_cpp')

pyb11_dep = [
py3.dependency(),
dependency('pybind11')
]

highspyext = py3.extension_module(
'_highs',
sources : highspy_cpp,
dependencies: [pyb11_dep, highs_dep],
c_args: [Wno_unused_variable, Wno_unused_but_set_variable],
cpp_args: [_cpp_Wno_unused_variable, _cpp_Wno_unused_but_set_variable],
install: true,
subdir: 'highspy',
)

py3.install_sources(
highspy_py,
subdir: 'highspy',
)
40 changes: 40 additions & 0 deletions scipy/optimize/_highs/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
# Setup the highs library
highs_proj = subproject('highs',
default_options : ['default_library=static',
'with_pybind11=True'])
highs_dep = highs_proj.get_variable('highs_dep')
highspy_py = highs_proj.get_variable('highspy_py')
highspy_cpp = highs_proj.get_variable('highspy_cpp')
highsoptions_cpp = highs_proj.get_variable('highsoptions_cpp')

pyb11_dep = [
py3.dependency(),
dependency('pybind11')
]

py3.extension_module(
'_highs',
sources : highspy_cpp,
dependencies: [pyb11_dep, highs_dep],
c_args: [Wno_unused_variable, Wno_unused_but_set_variable],
cpp_args: [_cpp_Wno_unused_variable, _cpp_Wno_unused_but_set_variable],
subdir: 'highspy',
install: true,
)


py3.extension_module(
'_highs_options',
sources : highsoptions_cpp,
dependencies: [pyb11_dep, highs_dep],
c_args: [Wno_unused_variable, Wno_unused_but_set_variable],
cpp_args: [_cpp_Wno_unused_variable, _cpp_Wno_unused_but_set_variable],
subdir: 'highspy',
install: true,
)

py3.install_sources(
highspy_py,
subdir: 'highspy',
)

py3.install_sources([
'__init__.py',
'_highs_wrapper.py',
Expand Down
Empty file.

0 comments on commit 76c7af1

Please sign in to comment.