Sep-23-2022, 06:28 PM
(This post was last modified: Sep-23-2022, 06:47 PM by Yoriz.
Edit Reason: Added code tags
)
I have a Flatpak which uses Meson to install the main Python program. There is a meson.build file which finds appropriate directory names and does things like this:
All this appears to be to be doing is finding out appropriate directories, then copying files into them. It also does install_data() whatever that is. Is there anything special about any of this or could it be done by using PIP statements within the Flatpak - thus eliminating the complication of another technology and an extra file? This isn't an urgent problem as the current method works, I'm just looking for opinions on whether it could be recommended as a way of keeping things simple.
1 2 3 4 5 6 |
bindir = get_option(‘bindir’) datadir = get_option(‘datadir’) pkgdatadir = join_paths(get_option(‘prefix’), get_option(‘datadir’), ‘myapp’) conf = configuration_data() conf. set (‘pkgdatadir’, pkgdatadir) install_data( file , install_dir: pkgdatadir) |