Bug 36680

Summary: Codegen secretly requires Python 2.6
Product: Telepathy Reporter: Olli Salli <ollisal>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED WONTFIX QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: trivial    
Priority: low CC: ollisal
Version: git master   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Olli Salli 2011-04-29 08:56:13 UTC
A quote from Felipe Crochik, who was building TpQt4 for Maemo 5, the SDK for which only has Python 2.5.4:

---

In order to build the version 0.5.15 (scratchbox/maemo5/python 2.5.4) one
file (tools/qt4-types-gen.py) had to be changed. Replaced "as" with "," on
the "except BrokenSpecException, e" line:

 Generator(dict(options))()
   except BrokenSpecException, e:
       print >> sys.stderr, 'Your spec is broken, dear developer! %s' % e
       sys.exit(42)

---

We should integrate this change upstream and somehow ensure we won't accidentally gain deps on newer Python versions again for no real purpose.
Comment 1 Alexandr Akulich 2016-06-11 06:18:45 UTC
I think we can keep dependence on python 2.6 those days, eight years after release.
Comment 2 diane 2016-06-20 18:08:39 UTC
Also the as syntax is the required syntax for python3. people really should be using at least python 2.7...

Diane

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.