Skip to content

Commit

Permalink
update meson files
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Dec 7, 2023
1 parent db94088 commit 4698e07
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ mpc = declare_dependency(
cc.find_library('mpc'),
]
)
# Cannot be found via pkg-config
arb = declare_dependency(
dependencies: [
cc.find_library('arb'),
]
)
mpfi = declare_dependency(
dependencies: [
cc.find_library('mpfi'),
Expand Down
1 change: 1 addition & 0 deletions src/sage/geometry/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ extension_data = {
'abc': files('abc.pyx'),
'integral_points_generic_dense': files('integral_points_generic_dense.pyx'),
'integral_points_integer_dense': files('integral_points_integer_dense.pyx'),
'palp_normal_form': files('palp_normal_form.pyx'),
'point_collection': files('point_collection.pyx'),
'toric_lattice_element': files('toric_lattice_element.pyx'),
}
Expand Down
2 changes: 1 addition & 1 deletion src/sage/libs/arb/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ foreach name, pyx : extension_data
subdir: 'sage/libs/arb',
install: true,
include_directories: [inc_arb, inc_cpython, inc_flint, inc_rings],
dependencies: [py_dep, arb, flint, gmp, mpfr],
dependencies: [py_dep, flint, gmp, mpfr],
)
endforeach

1 change: 1 addition & 0 deletions src/sage/libs/flint/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ py.install_sources(
extension_data = {
'arith': files('arith.pyx'),
'flint': files('flint.pyx'),
'fmpq_poly': files('fmpq_poly.pyx'),
'fmpz_factor': files('fmpz_factor.pyx'),
'fmpz_poly': files('fmpz_poly.pyx'),
'qsieve': files('qsieve.pyx'),
Expand Down
5 changes: 3 additions & 2 deletions src/sage/matrix/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ extension_data = {
'matrix_generic_dense': files('matrix_generic_dense.pyx'),
'matrix_generic_sparse': files('matrix_generic_sparse.pyx'),
# 'matrix_gfpn_dense': files('matrix_gfpn_dense.pyx'), # not yet on conda
'matrix_laurent_mpolynomial_dense': files('matrix_laurent_mpolynomial_dense.pyx'),
'matrix_numpy_dense': files('matrix_numpy_dense.pyx'),
'matrix_numpy_integer_dense': files('matrix_numpy_integer_dense.pyx'),
'matrix_polynomial_dense': files('matrix_polynomial_dense.pyx'),
Expand All @@ -70,7 +71,7 @@ foreach name, pyx : extension_data
subdir: 'sage/matrix',
install: true,
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_ntl, inc_numpy, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cblas, cypari2, cysignals, fflas, flint, gd, givaro, gmp, gmpxx, iml, linbox, m, m4ri, m4rie, mpfi, mpfr, mtx, ntl, pari, png, zlib],
dependencies: [py_dep, cblas, cypari2, cysignals, fflas, flint, gd, givaro, gmp, gmpxx, iml, linbox, m, m4ri, m4rie, mpfi, mpfr, mtx, ntl, pari, png, zlib],
)
endforeach

Expand All @@ -94,7 +95,7 @@ foreach name, pyx : extension_data_cpp
install: true,
override_options : ['cython_language=cpp'],
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_ntl, inc_numpy, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cblas, cypari2, cysignals, fflas, flint, gd, givaro, gmp, gmpxx, iml, linbox, m, m4ri, m4rie, mpfi, mpfr, mtx, ntl, pari, png, singular, zlib],
dependencies: [py_dep, cblas, cypari2, cysignals, fflas, flint, gd, givaro, gmp, gmpxx, iml, linbox, m, m4ri, m4rie, mpfi, mpfr, mtx, ntl, pari, png, singular, zlib],
)
endforeach

1 change: 0 additions & 1 deletion src/sage/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ conf_data.set('SAGE_MAXIMA', maxima.full_path())
conf_data.set('SAGE_MAXIMA_FAS', '')
# Kenzo cannot yet be provided by the system, so we always use the SAGE_LOCAL path for now.
conf_data.set('SAGE_KENZO_FAS', '\'${prefix}\'/lib/ecl/kenzo.fas')
conf_data.set('SAGE_ARB_LIBRARY', 'arb')
# It can be found, so we don't have to set anything here:
conf_data.set('NTL_INCDIR', '')
conf_data.set('NTL_LIBDIR', '')
Expand Down
4 changes: 2 additions & 2 deletions src/sage/rings/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ foreach name, pyx : extension_data
subdir: 'sage/rings',
install: true,
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_gsl, inc_ntl, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cypari2, cysignals, flint, gmp, gmpy2, gsl, m, mpc, mpfi, mpfr, ntl, pari, pthread],
dependencies: [py_dep, cypari2, cysignals, flint, gmp, gmpy2, gsl, m, mpc, mpfi, mpfr, ntl, pari, pthread],
)
endforeach

Expand All @@ -149,7 +149,7 @@ foreach name, pyx : extension_data_cpp
install: true,
override_options : ['cython_language=cpp'],
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_gsl, inc_ntl, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cypari2, cysignals, flint, gmp, gmpy2, gsl, m, mpc, mpfi, mpfr, ntl, pari, pthread],
dependencies: [py_dep, cypari2, cysignals, flint, gmp, gmpy2, gsl, m, mpc, mpfi, mpfr, ntl, pari, pthread],
)
endforeach

Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/number_field/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ foreach name, pyx : extension_data_cpp
install: true,
override_options : ['cython_language=cpp'],
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_ntl, inc_rings],
dependencies: [py_dep, arb, cypari2, cysignals, flint, gmp, mpfi, mpfr, ntl],
dependencies: [py_dep, cypari2, cysignals, flint, gmp, mpfi, mpfr, ntl],
)
endforeach

4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ foreach name, pyx : extension_data
subdir: 'sage/rings/polynomial',
install: true,
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_ntl, inc_numpy, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cypari2, cysignals, flint, givaro, gmp, mpfi, mpfr, ntl, pari],
dependencies: [py_dep, cypari2, cysignals, flint, givaro, gmp, mpfi, mpfr, ntl, pari],
)
endforeach

Expand All @@ -122,7 +122,7 @@ foreach name, pyx : extension_data_cpp
install: true,
override_options : ['cython_language=cpp'],
include_directories: [inc_arb, inc_cpython, inc_ext, inc_flint, inc_ntl, inc_numpy, inc_rings, inc_rings_finite],
dependencies: [py_dep, arb, cypari2, cysignals, flint, givaro, gmp, mpfi, mpfr, ntl, pari, singular],
dependencies: [py_dep, cypari2, cysignals, flint, givaro, gmp, mpfi, mpfr, ntl, pari, singular],
)
endforeach

Expand Down

0 comments on commit 4698e07

Please sign in to comment.