annotate paint/package2.py @ 62:726008cff4e3

remove code supporting old version
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 25 Jan 2013 11:07:34 -0800
parents c588375a7ce4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 """
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 Goals:
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 - expose package information for a given setup.py/package
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 - ensure that for a given set of packages that the versions are consistent
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 """
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 class Package2(object):
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10 def __init__(self, src, verbose=True):
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 self.verbose = verbose
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12 self._info = None
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 self._setup_py = None # local path to setup.py
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 def info(self):
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 """return info dictionary for a package"""
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
18 class PackageSet(object):
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
19 """
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
20 a group of packages
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
21
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
22 Functionality:
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
23 - unroll dependencies
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
24 - check consistency of dependencies
c588375a7ce4 starting a new strawman to work out kinks
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
25 """