comparison carton.py @ 16:c91abbdc871b

* add TODO: dependencies * take docstring from the module itself
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 08 Jul 2011 15:55:00 -0700
parents f05e636b7444
children b05f5f1ec26e
comparison
equal deleted inserted replaced
15:f05e636b7444 16:c91abbdc871b
105 buffer.seek(0) 105 buffer.seek(0)
106 tf = tarfile.open(mode='r', fileobj=buffer) 106 tf = tarfile.open(mode='r', fileobj=buffer)
107 tf.extractall(srcdir) 107 tf.extractall(srcdir)
108 108
109 # setup sources for development if there are any new setup.py files 109 # setup sources for development if there are any new setup.py files
110 # TODO: ideally this would figure out dependency order for you
110 for i in os.listdir(srcdir): 111 for i in os.listdir(srcdir):
111 if i in setup_pys: 112 if i in setup_pys:
112 continue 113 continue
113 subdir = os.path.join(srcdir, i) 114 subdir = os.path.join(srcdir, i)
114 if os.path.exists(os.path.join(srcdir, i, 'setup.py')): 115 if os.path.exists(os.path.join(srcdir, i, 'setup.py')):