Mercurial > hg > MakeItSo
diff makeitso/python.py @ 114:b8d5d2041fe0
stub out project name -> package name
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 17 Jan 2011 14:38:42 -0800 |
parents | bad70fb08b15 |
children | 7dbc3cdadffe |
line wrap: on
line diff
--- a/makeitso/python.py Mon Jan 17 14:32:07 2011 -0800 +++ b/makeitso/python.py Mon Jan 17 14:38:42 2011 -0800 @@ -56,6 +56,11 @@ # get project from output directory variables['project'] = os.path.basename(output) + # get package name from project + # XXX could have looser restrictions with transforms + assert variables['project'].isalpha(), 'Project name must be just letters' + variables['package'] = variables['project'].lower() + # dependencies dependencies = set([]) for template, dependency in self.dependencies.items():