please port ubuntu-system-service to Python3

Bug #1440388 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-service (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

There is still the goal to remove Python2 from the desktop images, and to use Python3 only. please port ubuntu-system-service to Python3

Tags: python3

Related branches

Changed in ubuntu-system-service (Ubuntu):
status: New → Fix Committed
assignee: nobody → Didier Roche (didrocks)
Revision history for this message
Steve Langasek (vorlon) wrote :

Hi Didier,

I tried building system-service from the branch, and this is what I saw:

 dpkg-buildpackage -rfakeroot -d -us -uc -S
dpkg-buildpackage: source package ubuntu-system-service
dpkg-buildpackage: source version 0.3
dpkg-buildpackage: source distribution wily
dpkg-buildpackage: source changed by Steve Langasek <email address hidden>
 dpkg-source --before-build ubuntu-system-service-0.3
 fakeroot debian/rules clean
dh "clean" --with translations,python3 --buildsystem python_distutils
   dh_testdir -O--buildsystem=python_distutils
   dh_auto_clean -O--buildsystem=python_distutils
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
Traceback (most recent call last):
  File "setup.py", line 6, in <module>
    from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command
dh_auto_clean: python setup.py clean -a returned exit code 1
debian/rules:4: recipe for target 'clean' failed
make: *** [clean] Error 1
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

Is this the behavior you saw at the time you prepared this patch?

Since the package doesn't appear to be uploadable in its current state, resetting the bug status.

Changed in ubuntu-system-service (Ubuntu):
status: Fix Committed → Triaged
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I don't think this was the case, I did a build+dogfooding on all packages that I ported to python3 at the time, still weird that DistUtilsExtra thingy as I remember to have fiddle with dependencies.

I'll probably look at that later on.

Revision history for this message
Matthias Klose (doko) wrote :

any update on this?

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I'm unsure anyone on the desktop team took the time to look at it. I think it should be doable on the 16.04 LTS timeframe though

Revision history for this message
Martin Pitt (pitti) wrote :

Taking a shot at this.

Changed in ubuntu-system-service (Ubuntu):
assignee: Didier Roche (didrocks) → Martin Pitt (pitti)
status: Triaged → In Progress
Martin Pitt (pitti)
Changed in ubuntu-system-service (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-system-service - 0.3

---------------
ubuntu-system-service (0.3) xenial; urgency=medium

  [ Didier Roche ]
  * bump upstream version to 0.3
  * port tests and binaries to python3 (LP: #1440388)
  * Keep some python2 build-deps to get the package built.
  * Bump Standards-Version to latest

  [ Martin Pitt ]
  * debian/rules: Only build/install for the default python3, not for all
    supported versions. This is only a private module, the interface is D-Bus.

 -- Martin Pitt <email address hidden> Tue, 03 Nov 2015 18:31:46 -0600

Changed in ubuntu-system-service (Ubuntu):
status: Fix Committed → 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.