Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace Meson with PIP
#1
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:
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)
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.
Reply
#2
In order to use pip, the author must place package in PyPi.org
ChrisOfBristol likes this post
Reply
#3
(Sep-23-2022, 06:28 PM)ChrisOfBristol Wrote: I have a Flatpak which uses Meson to install the main Python program.
Why you need to use Flatpak or Menson?
Python has it own way to build stuff look at this post
So making a Wheel(.whl) file that can share with others,if also upload to PyPi it will be available to all that has Python and pip eg pip install my_package.
Reply
#4
(Sep-23-2022, 09:35 PM)Larz60+ Wrote: In order to use pip, the author must place package in PyPi.org
Well that's a simple answer - the Python element isn't standalone, so it couldn't be put on PyPI.
Reply
#5
(Sep-24-2022, 02:38 PM)snippsat Wrote: Why you need to use Flatpak?
This package involves many dependencies written in C.
(Sep-24-2022, 02:38 PM)snippsat Wrote: Why you need to use Menson?
I don't know whether it would be possible to use a Wheel, but it would be another technology to learn, so I'd prefer to stick with Meson, unless I could just use a shell script.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Meson - to use or not to use ChrisOfBristol 1 1,425 Oct-14-2021, 01:51 AM
Last Post: Larz60+
  Search & Replace - Newlines Added After Replace dj99 3 3,393 Jul-22-2018, 01:42 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020