Bug 36680 - Codegen secretly requires Python 2.6
Summary: Codegen secretly requires Python 2.6
Status: RESOLVED WONTFIX
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: git master
Hardware: All All
: low trivial
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 08:56 UTC by Olli Salli
Modified: 2016-06-20 18:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.