From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: Dropping Python 2 (python-distutils & python-distutils-extra) Date: Wed, 12 May 2021 18:11:09 +0100 Message-ID: In-Reply-To: <9dfc7131-6980-0eea-201a-eeffa1797cb5@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4554704436776121024==" List-Id: --===============4554704436776121024== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Adolf, As far as I am aware, setuptools was merged into the base distribution of Pyt= hon 3 and neither distutils or setuptools are required any more. Just dropping this package should be fine. -Michael > On 12 May 2021, at 12:07, Adolf Belka wrote: >=20 > Hi All, >=20 > I was looking at python-distutils and python-distutils-extra as the next fi= les to convert from python2 to python3 but I am wondering if this makes sense. >=20 >=20 > python-distutils has a lfs file that is missing most of the content. python= -distutils is not listed in make.sh so it is not being built. However the roo= tfile and the addon install are still in place and working. >=20 > python-distutils is listed as a dependency for python-distutils-extra. This= package is provided by Ubuntu launchpad. The current IPFire version is 2.25 = from 2011. The most up to date version available is 2.39 from 2016. There loo= ks to be no more development of this module. This addon package is not listed= anywhere in IPFire as a dependency. >=20 > Looking up python-distutils in the python.org documentation it says that it= has been replaced by python-setuptools. >=20 > PyPI indicates that distutils development stopped in 2012 and that setuptoo= ls and pip should be used. >=20 >=20 > The current version of python-setuptools in IPFire is 0.6c11 and the versio= n available in PyPI is 56.2.0 >=20 > It would seem to me that python-distutils and python-distutils-extra should= be removed and python-setuptools should be updated to version 56.2.0 and con= verted to python3 >=20 > Is my conclusion reasonable or am I missing things. >=20 > Thanks, >=20 > Adolf. >=20 > On 05/05/2021 16:27, Michael Tremer wrote: >> Hello, >>=20 >> I would like to talk about what has been discussed at the last developer c= onference call this week: Dropping Python 2 >>=20 >> This version of Python has reached its end of life and will no longer rece= ive any security fixes. Hence we need to get rid of it as soon as possible. >>=20 >> However, there is lots of software that still depends on it which has to b= e migrated away first. >>=20 >> There are at least the following packages: >>=20 >> boost >> fetchmail >> fireinfo >> iotop >> ipaddr >> libxml2 >> libxslt >> newt >> nmap >> python >> python-clientform >> python-daemon >> python-distutils >> python-distutils-extra >> python-docutils >> python-feedparser >> python-inotify >> python-ipaddress >> python-m2crypto >> python-mechanize >> python-optional-src >> python-pyparsing >> python-rssdler >> python-setuptools >> python-six >> python-typing >>=20 >> We also have the following scripts: >>=20 >> config/ca-certificates/certdata2pem.py >> config/unbound/unbound-dhcp-leases-bridge >>=20 >> Fireinfo is written by us and has a lot of C which will make it a little b= it more difficult to migrate. We would also have to be very careful to not ch= ange any behaviour of the current implementation. >>=20 >> The rest is probably either software that is entirely written in Python 2 = or software that brings bindings for Python. The latter case is easy because = we can either force it to build with Python 3 or we just disable the bindings. >>=20 >> Ultimately we might need to keep Python around in the build system if ther= e are other packages that rely on it. However, it would be great if we were a= ble to remove it from the distribution very soon. Looking at his list, it doe= s not seem to be too difficult. >>=20 >> Would anyone be up to help and remove Python from any of those packages ab= ove? I would like to aim for Core Update 158 and remove as much stuff as poss= ible - if we can everything - and then remove Python 2 in the update after th= at. If anyone has any custom scripts or applications, people will have some t= ime to migrate away. >>=20 >> Best, >> -Michael --===============4554704436776121024==--