Conversation
|
Hi, |
it is not particularly important what programming language it is written in, python is not a compiled programming language, meson specifies which files and where to put them. you can take the entire GNOME stack as an example, it uses meson everywhere as a build system, including python applications. Typically meson is used to build and package GTK applications. |
Hmm, I got that one. Looking at files, a binary binding in /bin with the name sysmontask will be created which points to the file sysmontask.py as a whole but like in the case of setuptools I can specify the individual functions in the same file to make an executable for. Is this possible with meson? since I need to make three more theme setting API calls for sysmontask as mentioned in the readme. |
The answer to the first question is I haven't figured out the second one yet, but it's quite possible to implement, write a python script, and execute it in the same way Line 16 in 6ca2141 |
|
Why? It's just a python app, let's keep in python way. |
For each distribution, there are certain rules for packaging applications, some distributions package python with simultaneous support for several versions, for ordinary applications without a GUI this does not cause problems, for GUI applications, packaging with support for 3-4 versions of python becomes difficult, and sometimes impossible, in assembly systems, when building, many different macros and scriptlets are called. Meson solves all problems. |
Seriously, OS/distros usually have one main python version and all packages are using it, see RHEL/CentOS and why they use Software Collections. And... I was doing packaging and I can say one thing - any bundled post-install script which comes from the package itself is usually ignored, OS/distributions have their way to run post-install task, like update-desktop-mime DBs, cleanup etc... This is simple python app and there's no need to invent a monster around it to just use it. BTW I see no reason why would anybody even use |
Added building of packages through the meson build system.