python in xenial cloud image

Bug #1538198 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I'm not sure why, but python2 still has a presence inthe cloud image.
Perhaps something Recommends it ?
python other than 'libpython2.7' can be purged with no dependency pain. vim pulls libpython in (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729924)

$ cat /etc/cloud/build.info
build_name: server
serial: 20160125-134444

$ dpkg-query --show | grep python[^3]
dh-python 2.20151103ubuntu1
libpython-stdlib:amd64 2.7.11-1
libpython2.7:amd64 2.7.11-3
libpython2.7-minimal:amd64 2.7.11-3
libpython2.7-stdlib:amd64 2.7.11-3
python 2.7.11-1
python-apt-common 1.1.0~beta1build1
python-minimal 2.7.11-1
python2.7 2.7.11-3
python2.7-minimal 2.7.11-3

$ sudo apt-get --purge remove python python-minimal python2.7 python2.7-minimal libpython-stdlib
sudo: unable to resolve host xenial-20160126-155625
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libpython-stdlib* python* python-minimal* python2.7* python2.7-minimal*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 4,791 kB disk space will be freed.
Do you want to continue? [Y/n] Y

P

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: python 2.7.11-1
ProcVersionSignature: User Name 4.3.0-7.18-generic 4.3.3
Uname: Linux 4.3.0-7-generic x86_64
ApportVersion: 2.19.3-0ubuntu3
Architecture: amd64
Date: Tue Jan 26 16:13:10 2016
Ec2AMI: ami-0000078b
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: None
Ec2Ramdisk: None
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

the chain looks like:
  mdadm Recommends -> postfix Recommends -> python

Changed in postfix (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Scott Moser (smoser) wrote :

This initial path at least compiles. I suspect I have some errors.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1538198] Re: python in xenial cloud image

On Jan 26, 2016, at 05:49 PM, Scott Moser wrote:

> mdadm Recommends -> postfix Recommends -> python

Can we bump the latter down to a Suggests?

Revision history for this message
Scott Moser (smoser) wrote :

in this patch number 2 the following only shows gettext '_' errors and [1] indicates those are false positives.
$ files="debian/tests/test-postfix.py debian/tests/testlib.py debian/postfix-add-policy debian/postfix.apport debian/postfix-add-filter"
$ for f in $files; do echo === $f ===; for py in python python3; do echo = $py =; $py -m pylint --additional-builtins=_ $f --errors-only ; done; done
=== debian/tests/test-postfix.py ===
= python =
No config file found, using default configuration
= python3 =
No config file found, using default configuration
=== debian/tests/testlib.py ===
= python =
No config file found, using default configuration
= python3 =
No config file found, using default configuration
=== debian/postfix-add-policy ===
= python =
No config file found, using default configuration
= python3 =
No config file found, using default configuration
=== debian/postfix.apport ===
= python =
No config file found, using default configuration
= python3 =
No config file found, using default configuration
=== debian/postfix-add-filter ===
= python =
No config file found, using default configuration
= python3 =
No config file found, using default configuration

[1] https://bitbucket.org/logilab/pylint/issues/396/false-positive-for-gettextinstall

Revision history for this message
Scott Kitterman (kitterman) wrote :

On Tuesday, January 26, 2016 06:11:48 PM you wrote:
> On Jan 26, 2016, at 05:49 PM, Scott Moser wrote:
> > mdadm Recommends -> postfix Recommends -> python
>
> Can we bump the latter down to a Suggests?

I don't think so, but the scripts are all pretty trivial. I'd just port it
and be done.

tags: added: patch
Revision history for this message
Scott Moser (smoser) wrote :

Scott,
  Thanks for the quick response. I've done some very initial and probably buggy blind porting of the scripts. Do you have a way that I could test these things? I'm not at all familiar enough with postfix to be able to give it any sane test.

Scott Moser (smoser)
no longer affects: python-defaults (Ubuntu)
Revision history for this message
LaMont Jones (lamont) wrote :

Fixed in 3.0.3-1

Changed in postfix (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.