~blake-rouse/curtin/curtin-no-nvram

Viewing all changes in revision 198.

  • Committer: Scott Moser
  • Date: 2015-03-11 16:40:11 UTC
  • mfrom: (196.1.24 trunk.py2or3)
  • Revision ID: smoser@ubuntu.com-20150311164011-4bgfy1l2eunkv0yp
python3or2 launcher and python3 fixes

This set of changes gets us to functional python3 curtin.
It represents 2 functional changes:
a.) a launcher (bin/curtin) change from python to shell
  the launcher will by default search for a python and use
  the first one where $python -m curtin.deps.check exits 0
  if none in the list successfully verify deps, it will attempt
  to install the deps using the first available python in the list

b.) fixes for python3
   maas reporter is ported to use either oauthlib or oauth, depending
   on which is available in import.  And also has changes for urllib usage.

   general minor fixes to work in python3.
    
I've testd it with maas 1.7.1 installs of vivid, trusty and precise.
Maas currently uses the ephemeral environment of the release that it is
installing to do the install.  So, this represenst 3 different python
environments:
  vivid only has suitable python in python3 (python3-yaml, python3)
  trusty has python-yaml and python2  2.7.5
  precise has python-yaml and python2 2.7.3

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: