Port unity to Python 3

Bug #1512909 reported by Barry Warsaw
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity
Fix Released
High
Marco Trevisan (Treviño)
unity (Ubuntu)
Fix Released
High
Marco Trevisan (Treviño)

Bug Description

We're dropping Python 2.7 from the default installs so unity must be ported to Python 3. It actually might be fairly easy, since I think /usr/bin/unity might be the only actual Python 2 script and I think it will run on Python 3. I'm doing a test build now to see if that's the case and then will attach a patch or branch.

Related branches

Revision history for this message
Barry Warsaw (barry) wrote :

Here's my diff so far. I tried to build this locally but the build segfaulted, so I'll try in a PPA tomorrow.

tags: added: patch
Will Cooke (willcooke)
Changed in unity:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in unity (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Steve Langasek (vorlon)
Changed in unity (Ubuntu):
status: New → In Progress
Revision history for this message
Daniel Holbach (dholbach) wrote :
Changed in unity (Ubuntu):
importance: Undecided → High
Revision history for this message
Barry Warsaw (barry) wrote :

Does the linked branch actually fix the Python 3 bug? I don't see it in the merge proposal diff.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

No, the right branch is lp:~unity-team/unity/python3-ready (I did a wrong push in the other before, that's why LP got confused).

Changed in unity:
status: New → In Progress
importance: Undecided → High
milestone: none → 7.4.0
tags: added: rls-x-incoming
Will Cooke (willcooke)
Changed in unity (Ubuntu):
milestone: none → ubuntu-16.04
tags: removed: rls-x-incoming
tags: added: unity-backlog
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 7.4.0+16.04.20151211-0ubuntu1

---------------
unity (7.4.0+16.04.20151211-0ubuntu1) xenial; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * unity: ensure we use python3 for the launch script and
    python2.7 for autopilot (LP: #1512909)

  [ Andrea Azzarone ]
  * Places(Overlay)VScrollBar: impelement gtk-like overlay scrollbars
    (LP: #1481706)
  * Properly hide shortcut overlay window to avoid unnecessary redraws.

  [ Bryan Quigley ]
  * debian/control: Remove telepathy from recommends

  [ Eleni Maria Stea ]
  * Replaced deprecated calls in tests to get rid of compiler warnings

  [ Marco Trevisan (Treviño) ]
  * ApplicationLauncherIcon: if a new window opens while spreading,
    spread again with proper match (LP: #1517455)
  * ExpoLauncherIcon: add Quicklist to switch workspace and see the
    selected one (LP: #750497)
  * PanelIndicatorEntryView: Activate menus on click, by drawing them as
    active (LP: #1513523)
  * PanelMenuView: ignore leave events when triggered by feeding nux
    manually (LP: #1513496)
  * Places(Overlay)VScrollBar: impelement gtk-like overlay scrollbars
    (LP: #1481706)
  * SwitcherModel: allow to add/remove icons dynamically and update them
    when they require it (LP: #1512349)
  * SwitcherView: Add support to Alt+Key-right-to-tab to close the
    selected app/window
  * Switcher{View,Controller}: close active selection on Alt+q (LP:
    #1468820)
  * TextInput: show warning also when num lock is enabled
  * XKeyboardUtil: add ability to get keycodes from any relative
    position
  * debian/rules: enable unit tests on arm64 again (LP: #1514538)

  [ Sebastien Bacher ]
  * Updated apport hook to include: the compiz and xorg details, not
    only after asking users if the issue is a graphical one (which is
    weird question) the upstart logs for unity/ups/lockscreen some
    gsettings configurations (LP: #1508974)

 -- Marco Trevisan (Treviño) <mail@3v1n0.net> Fri, 11 Dec 2015 12:46:16 +0000

Changed in unity (Ubuntu):
status: In Progress → Fix Released
Changed in unity:
status: In Progress → Fix Committed
Changed in unity:
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.