Mercurial > hg > carton
comparison carton.py @ 39:d9dcc5a1503b
allow distutils packages as well as setuptools
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Mon, 09 Apr 2012 13:46:42 -0700 |
| parents | 99c610473c17 |
| children |
comparison
equal
deleted
inserted
replaced
| 38:99c610473c17 | 39:d9dcc5a1503b |
|---|---|
| 139 if os.path.exists(os.path.join(srcdir, i, 'setup.py')): | 139 if os.path.exists(os.path.join(srcdir, i, 'setup.py')): |
| 140 try: | 140 try: |
| 141 call([python, 'setup.py', 'develop'], cwd=subdir) | 141 call([python, 'setup.py', 'develop'], cwd=subdir) |
| 142 except: | 142 except: |
| 143 call([python, 'setup.py', 'install'], cwd=subdir) | 143 call([python, 'setup.py', 'install'], cwd=subdir) |
| 144 # TODO: try `setup.py install` if develop fails for distutils packages | |
| 145 setup_pys.add(i) | 144 setup_pys.add(i) |
| 146 | 145 |
| 147 # add virtualenv to the virtualenv (!) | 146 # add virtualenv to the virtualenv (!) |
| 148 virtualenv_dir = os.path.dirname(virtualenv) | 147 virtualenv_dir = os.path.dirname(virtualenv) |
| 149 if os.path.exists(os.path.join(virtualenv_dir, 'setup.py')): | 148 if os.path.exists(os.path.join(virtualenv_dir, 'setup.py')): |
