From e4afb294a09a9e025639865eaffd6a46351dec66 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 12 Nov 2023 18:27:51 +0000 Subject: [PATCH] Properly compile dynamics --- .../dynamics/arithmetic_dynamics/meson.build | 28 +++++++++++++++++++ .../dynamics/complex_dynamics/meson.build | 20 +++++++++++++ src/sage/dynamics/meson.build | 11 ++++++++ src/sage/meson.build | 2 +- 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 src/sage/dynamics/arithmetic_dynamics/meson.build create mode 100644 src/sage/dynamics/complex_dynamics/meson.build create mode 100644 src/sage/dynamics/meson.build diff --git a/src/sage/dynamics/arithmetic_dynamics/meson.build b/src/sage/dynamics/arithmetic_dynamics/meson.build new file mode 100644 index 00000000000..45d4d11c73d --- /dev/null +++ b/src/sage/dynamics/arithmetic_dynamics/meson.build @@ -0,0 +1,28 @@ +py.install_sources( + 'affine_ds.py', + 'all.py', + 'berkovich_ds.py', + 'dynamical_semigroup.py', + 'endPN_automorphism_group.py', + 'endPN_minimal_model.py', + 'generic_ds.py', + 'product_projective_ds.py', + 'projective_ds.py', + 'wehlerK3.py', + subdir: 'sage/dynamics/arithmetic_dynamics', +) + +extension_data = { + 'projective_ds_helper': files('projective_ds_helper.pyx'), +} + +foreach name, pyx : extension_data + py.extension_module(name, + sources: pyx, + subdir: 'sage/dynamics/arithmetic_dynamics', + install: true, + include_directories: [], + dependencies: [py_dep, gmp], + ) +endforeach + diff --git a/src/sage/dynamics/complex_dynamics/meson.build b/src/sage/dynamics/complex_dynamics/meson.build new file mode 100644 index 00000000000..22426829362 --- /dev/null +++ b/src/sage/dynamics/complex_dynamics/meson.build @@ -0,0 +1,20 @@ +py.install_sources( + 'all.py', + 'mandel_julia.py', + subdir: 'sage/dynamics/complex_dynamics', +) + +extension_data = { + 'mandel_julia_helper': files('mandel_julia_helper.pyx'), +} + +foreach name, pyx : extension_data + py.extension_module(name, + sources: pyx, + subdir: 'sage/dynamics/complex_dynamics', + install: true, + include_directories: [], + dependencies: [py_dep, cysignals, gmp], + ) +endforeach + diff --git a/src/sage/dynamics/meson.build b/src/sage/dynamics/meson.build new file mode 100644 index 00000000000..3d9a73c29a2 --- /dev/null +++ b/src/sage/dynamics/meson.build @@ -0,0 +1,11 @@ +py.install_sources( + 'all.py', + 'finite_dynamical_system.py', + 'finite_dynamical_system_catalog.py', + 'surface_dynamics_deprecation.py', + subdir: 'sage/dynamics', +) + +subdir('arithmetic_dynamics') +install_subdir('cellular_automata', install_dir: sage_install_dir / 'dynamics') +subdir('complex_dynamics') diff --git a/src/sage/meson.build b/src/sage/meson.build index 7513244c0b2..2ed1c3abe89 100644 --- a/src/sage/meson.build +++ b/src/sage/meson.build @@ -4,7 +4,6 @@ sage_install_dir = py.get_install_dir() / 'sage' no_processing = [ 'databases', 'doctest', - 'dynamics', 'features', 'game_theory', 'homology', @@ -79,3 +78,4 @@ subdir('sets') subdir('stats') subdir('symbolic') subdir('tests') +subdir('dynamics')