From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Problem building python3-flit_scm for use with borgbackup Date: Tue, 09 May 2023 17:30:54 +0200 Message-ID: <0add5d82-55f0-0684-2abe-c1ec96b769c9@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0116577892537753117==" List-Id: --===============0116577892537753117== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Good news. After a few varying attempts I have successfully built=20 python3-flit_scm and python3-exceptiongroup using the python build and=20 pip install commands. I have then installed the addon packages on my vm testbed and confirmed=20 that the fuse mount command works again with borgbackup. I will look at using the python build/pip install approach on all the=20 python modules for borgbackup as setup.py is flagged as deprecated. If=20 that all works then I will submit a patch set for the bug fix. Learned a lot with this bug issue. Hopefully useful for the future. Regards, Adolf. On 09/05/2023 09:42, Michael Tremer wrote: > Okay, this sounds like good news. >=20 > I wish there wouldn=E2=80=99t be such massive chaos with every other langua= ge=E2=80=99s build system. >=20 > -Michael >=20 >> On 5 May 2023, at 16:34, Adolf Belka wrote: >> >> Hi Michael, >> >> On 04/05/2023 16:51, Michael Tremer wrote: >>> Hello Adolf, >>> Another day with another interesting problem that you are bringing us :) >> >> I do seem to be able to find things that don't work as expected don't I. >>> Did you try to run =E2=80=9Cpython3 -m build=E2=80=9D in the source direc= tory of exceptiongroup and flit-scm? >>> That inspiration is coming from here: >>> https://github.com/archlinux/svntogit-community/blob/packages/python-e= xceptiongroup/trunk/PKGBUILD >> >> The day before yesterday I thought to myself maybe I should look what Arch= Linux does but never followed through on it. Thanks very much for the sugges= tion. I will give it a go and see how it goes. I will also compare it with th= e python3-flit module we have because that looks to use the pypproject.toml f= ile, although there are several environment variables defined that I am not s= ure how to specify for my case but will see how things go. >>> I am not sure whether we have the build and installer module. >> We do have build but not installer. The python3-flit module seems to work = without using installer, just build so will see how things go to start with o= nly using build before looking at adding installer in as well. >> >> Regards, >> Adolf. >> >>> Best, >>> -Michael >>>> On 1 May 2023, at 17:52, Adolf Belka wrote: >>>> >>>> Hi All, >>>> >>>> I have figured out why the fuse mount stopped working with borgbackup in= Core Update 173. (Bug#13076) >>>> >>>> >>>> python3-trio was updated when python was updated to 3.10.8 and python3-t= rio is required by python3-pyfuse3. However the python3-trio update also adde= d a new dependency - python3-exceptiongroup which then requires python3-flit_= scm for the build of python3-exceptiongroup. >>>> >>>> >>>> Both python3-exceptiongroup and python3-flit_scm use pyproject.toml, how= ever python3-pyproject2setuppy fails with trying to build python3-flit_scm as= it does not understand the backend definition in the pyproject.toml file. >>>> >>>> The error message is :- >>>> >>>> File "/usr/lib/python3.10/site-packages/pyproject2setuppy/__main__.= py", line 50, in main >>>> raise NotImplementedError( >>>> NotImplementedError: Build backend flit_scm:buildapi unknown >>>> >>>> >>>> pyproject2setuppy is now marked as DEFUNCT due to the number of special = cases in the pyproject.toml file that needed lots of work each time to update= pyproject2setuppy to work again. >>>> >>>> >>>> Does anyone have any idea how I should build flit_scm and exceptiongroup= without using pyproject2setuppy. >>>> >>>> I have done some searching but could not find anything that I could eith= er understand or that did not require internet access to download all require= d dependencies. >>>> >>>> >>>> Regards, >>>> >>>> Adolf. >>>> >> >> --=20 >> Sent from my laptop >=20 >=20 --=20 Sent from my laptop --===============0116577892537753117==--