From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Info on problems with python3-setuptools for IPFire-3.x Date: Thu, 21 Sep 2023 20:25:02 +0200 Message-ID: <19f48063-6aa3-4f8a-9bfa-62e24a79d030@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6924950756287672096==" List-Id: --===============6924950756287672096== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi All, The IPFire-3.x version of python3-setuptools is quite old so I thought I=20 would have a go at updating it but had a few problems on the way. Running the existing version for 65.6.3 results in Building python3-setuptools-65.6.3-1.ipfire3.src... python3-setuptools-65.6.3-1.ipfire3.src does not support being built on=20 x86_64 OSError: [Errno 0] Error Removing the line from the build section that has arches =3D noarch stops=20 that error occurring. Most of the other python3 .nm files don't have=20 that arches line present. Trying to then run version 68.2.2 resulted in the error Could not add 'setuptools-68.2.2.tar.gz' to package: Success Testing out the download url I found that it works with version 65.6.3=20 but not with 68.2.2. Looking at the download from PyPI I found that=20 other parts of the download url are changed for different versions of=20 the same package. The download url for 65.6.3 and for 68.2.2 are shown below for comparison https://files.pythonhosted.org/packages/b6/21/cb9a8d0b2c8597c83fce8e9c02884bc= e3d4951e41e807fc35791c6b23d9a/setuptools-65.6.3.tar.gz https://files.pythonhosted.org/packages/ef/cc/93f7213b2ab5ed383f98ce8020e632e= f256b406b8569606c3f160ed8e1c9/setuptools-68.2.2.tar.gz The above means that each time the version number is changed the=20 download url will also need to be manually edited for all downloads from=20 PyPI. After changing the download url then the package downloaded and was=20 successfully built. Regards, Adolf. --=20 Sent from my laptop --===============6924950756287672096==--