1project('wwplot', 2 version: '0.0.8', 3 meson_version: '>= 0.51.0' 4) 5 6pymod = import('python') 7i18n_mod = import('i18n') 8 9required_modules = ['PySide2','numpy','scipy'] 10 11py3 = pymod.find_installation('python3.8', modules:required_modules) 12 13message('python version: ' + py3.language_version()) 14message('module install path: ' + py3.get_install_dir()) 15 16prefix = get_option('prefix') 17bindir = join_paths(prefix, get_option('bindir')) 18datadir = join_paths(prefix, get_option('datadir')) 19localedir = join_paths(prefix, get_option('localedir')) 20 21install_subdir('WWplot', install_dir: py3.get_install_dir()) 22 23conf_wwplot = configuration_data() 24conf_wwplot.set('LOCALEDIR', localedir) 25conf_wwplot.set('PROJECT_NAME', meson.project_name()) 26configure_file(input: 'wwplot.in', 27 output: 'wwplot', 28 configuration: conf_wwplot, 29 install_dir: bindir) 30 31subdir('data') 32subdir('po') 33