From ea86281dedc1b2213a55b3439fcd8dca459986a2 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 3 Nov 2024 12:12:01 +0800 Subject: [PATCH] Meson: minor revision --- .gitignore | 1 + meson.build | 2 +- src/meson.build | 1 - src/sage/meson.build | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7d8c2f0adc4..c229618b365 100644 --- a/.gitignore +++ b/.gitignore @@ -309,6 +309,7 @@ build-install build/cp* # Meson temporary files +subprojects/wrapdb.json src/sage/interfaces/__init__.py src/sage/crypto/block_cipher/__init__.py src/sage/crypto/public_key/__init__.py diff --git a/meson.build b/meson.build index 8bf73d23d55..ac5594852ff 100644 --- a/meson.build +++ b/meson.build @@ -35,7 +35,7 @@ endif # Workaround for missing init files (Cython doesn't handle namespace packages well) create_files_command = [ - 'python3', + py, '-c', ''' import os diff --git a/src/meson.build b/src/meson.build index 12d82fa91c3..b4d82d96805 100644 --- a/src/meson.build +++ b/src/meson.build @@ -80,7 +80,6 @@ blas_order += ['cblas', 'openblas', 'OpenBLAS', 'flexiblas', 'blis', 'blas'] blas = dependency(blas_order) gsl = dependency( 'gsl', - fallback: ['gsl', 'gsl_dep'], version: '>=2.5', required: true, ) diff --git a/src/sage/meson.build b/src/sage/meson.build index 687ac549c10..e63757e17f4 100644 --- a/src/sage/meson.build +++ b/src/sage/meson.build @@ -6,7 +6,7 @@ conf_data = configuration_data() conf_data.set('PACKAGE_VERSION', '1.2.3') conf_data.set('SAGE_ROOT', meson.current_source_dir() / '..' / '..') # We use Python's prefix here to make it work with conda -prefix = py.get_variable('prefix', '') +prefix = fs.as_posix(py.get_variable('prefix', '')) conf_data.set('prefix', prefix) datadir = fs.expanduser(get_option('datadir')) if not fs.is_absolute(datadir) @@ -56,7 +56,7 @@ ecm_bin = find_program(['ecm', 'gmp-ecm'], required: true) conf_data.set('SAGE_ECMBIN', ecm_bin.full_path()) config_file = configure_file( - input: '../../pkgs/sage-conf_conda/_sage_conf/_conf.py.in', + input: '../../pkgs/sage-conf/_sage_conf/_conf.py.in', output: 'config.py', install_dir: py.get_install_dir() / 'sage', install: true,