Bug#949572: debian-installer: Do not install Python2 by default.
I don't think python3 need to be standard. Better keep it optional as it is. As of of Python 2, indeed there are overrides for Python 2: $ zgrep ^python override.sid.main.gz | grep standard python standard python python-minimal standard python python2.7 standard python python3-reportbug standard python # This one is ok. $ Lets make them (the three first ones) optional or remove from the overrides. I also checked libpython* overrides, and there are some, but they are all `optional`: $ zgrep ^libpython override.sid.main.gz | grep -v libpython3 libpython-all-dbg optional debug libpython-dbg optional debug libpython2-dbg optional debug libpython2.7-dbg optional debug libpython-all-dev optional libdevel libpython-dev optional libdevel libpython2-dev optional libdevel libpython2.7-dev optional libdevel libpython2.7-testsuite optional libdevel libpython2.7 optional libs libpython-stdlib optional python libpython2-stdlib optional python libpython2.7-minimal optional python libpython2.7-stdlib optional python $ Why they are in this file in the first place I don't know. Maybe because of Section. If Python2 maintainers agree, I guess it is appropriate to reassign the bug to `ftp.debian.org` pseudo-package. Regards, Witold On Thu, 23 Jan 2020 at 13:01, Samuel Thibault wrote: > > Matthias Klose, le jeu. 23 janv. 2020 10:33:48 +0100, a ecrit: > > On 22.01.20 23:07, Samuel Thibault wrote: > > > Priority: standard is exactly what defines what will be installed when > > > you select the "standard" task in tasksel. All of python-minimal, > > > python2.7, and python have Priority: standard. > > > > > > So this is to be changed in the python-defaults and python2.7 packages. > > > (and possibly set the python3 equivalents' priority to standard > > > instead). > > > > No, these are already set to optional in python-defaults and python2.7. > > In the source package, apparently yes, but in > http://ftp.fr.debian.org/debian/dists/sid/main/binary-amd64/Packages.xz > > Package: python > ... > Priority: standard > > I guess you need to ask ftpmaster for updating the indices override: > > http://ftp.fr.debian.org/debian/indices/override.sid.main.gz > > > > Why would you want to set the python3 equivalents to standard now? > > I didn't say I wanted, I just meant that it could be wanted. I don't > know why python itself was set so, I don't know if the reasons are still > valid either. > > Samuel
Bug#949572: debian-installer: Do not install Python2 by default.
Matthias Klose, le jeu. 23 janv. 2020 10:33:48 +0100, a ecrit: > On 22.01.20 23:07, Samuel Thibault wrote: > > Priority: standard is exactly what defines what will be installed when > > you select the "standard" task in tasksel. All of python-minimal, > > python2.7, and python have Priority: standard. > > > > So this is to be changed in the python-defaults and python2.7 packages. > > (and possibly set the python3 equivalents' priority to standard > > instead). > > No, these are already set to optional in python-defaults and python2.7. In the source package, apparently yes, but in http://ftp.fr.debian.org/debian/dists/sid/main/binary-amd64/Packages.xz Package: python ... Priority: standard I guess you need to ask ftpmaster for updating the indices override: http://ftp.fr.debian.org/debian/indices/override.sid.main.gz > Why would you want to set the python3 equivalents to standard now? I didn't say I wanted, I just meant that it could be wanted. I don't know why python itself was set so, I don't know if the reasons are still valid either. Samuel
Bug#949572: debian-installer: Do not install Python2 by default.
On 22.01.20 23:07, Samuel Thibault wrote: > Control: clone -1 -2 > Control: reassign -1 python-defaults > Control: retitle -1 please set python and python-minimal's priority to > optional so it's not installed in the standard task > Control: reassign -2 python2.7 > Control: retitle -2 please set python2.7's priority to optional so it's not > installed in the standard task > > Hello, > > Witold Baryluk, le mer. 22 janv. 2020 20:21:17 +0100, a ecrit: >> I was thinking maybe it is being installed because of the >> Priority: important or Priority: essential, but no I checked >> python{,2}{,-minimal} and they are either Priority: standard > > Priority: standard is exactly what defines what will be installed when > you select the "standard" task in tasksel. All of python-minimal, > python2.7, and python have Priority: standard. > > So this is to be changed in the python-defaults and python2.7 packages. > (and possibly set the python3 equivalents' priority to standard > instead). No, these are already set to optional in python-defaults and python2.7. Why would you want to set the python3 equivalents to standard now?
Bug#949572: debian-installer: Do not install Python2 by default.
Control: clone -1 -2 Control: reassign -1 python-defaults Control: retitle -1 please set python and python-minimal's priority to optional so it's not installed in the standard task Control: reassign -2 python2.7 Control: retitle -2 please set python2.7's priority to optional so it's not installed in the standard task Hello, Witold Baryluk, le mer. 22 janv. 2020 20:21:17 +0100, a ecrit: > I was thinking maybe it is being installed because of the > Priority: important or Priority: essential, but no I checked > python{,2}{,-minimal} and they are either Priority: standard Priority: standard is exactly what defines what will be installed when you select the "standard" task in tasksel. All of python-minimal, python2.7, and python have Priority: standard. So this is to be changed in the python-defaults and python2.7 packages. (and possibly set the python3 equivalents' priority to standard instead). Samuel
Bug#949572: debian-installer: Do not install Python2 by default.
Package: debian-installer Followup-For: Bug #949572 I was thinking maybe it is being installed because of the Priority: important or Priority: essential, but no I checked python{,2}{,-minimal} and they are either Priority: standard and Priority: optional. So I a not exactly sure what decides to install it. I checked the debootstrap sources and a profile for 'sid', I do not see the python mentioned there explicitly. I even done a test with `debootstrap sid ` and it doesn't install Python at all. There is no python in base or required packages. So the fact that debian-installer is installing Python2 must be coming from somewhere else. Python3 makes sense as it is dependency of reportbug, popcon and apt-listchanges for example. Cheers, Witold
Bug#949572: debian-installer: Do not install Python2 by default.
Package: debian-installer Followup-For: Bug #949572 One more thing, reportbug, apt-listchanges, and few other packages that look to be using Python, all work fine, and use Python3. I rebooted the system, and things are working fine.
Bug#949572: debian-installer: Do not install Python2 by default.
Package: debian-installer Severity: normal Hi, I just installed Debian using daily amd64 netinst iso (2020-01-21 iso), and after I selected mostly minimal amount of stuff (plus popcon, unatannteded-upgrades, and ssh server and standard utilities), I rebooted, and checked the python2 packages. I did spot that python2.7 and python (2) packages were installed. I just done apt-get purge {,lib}{python,python2.7}{,-minimal,-stdlib} and nothing else was removed. Just python2. There is nothing in the minimal system that depends on it. Removal was successfull. $ python bash: python: command not found $ Good! python3 works fine. System looks to be working perfectly fine. So the debian-installer, or debootstrap, or whatever is installing python (2), should stop doing it. If some later package requires is as a dependency, sure apt will install it, but by default it is unecassary dependency. If there is some package or script that implicitly depends on Python2, well so bad. It is better to simply remove this implicit dependency, and by removing default installation of python2, it would be way easier to actually find any such scripts, if any. Best regards, Witold -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.4.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled