Mercurial > hg > carton
comparison carton.py @ 22:9c710f06e51d
add virtualenv to the virtualenv(!)
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Fri, 08 Jul 2011 18:11:09 -0700 |
| parents | 46882eaebb59 |
| children | 987086aad234 |
comparison
equal
deleted
inserted
replaced
| 21:46882eaebb59 | 22:9c710f06e51d |
|---|---|
| 115 subdir = os.path.join(srcdir, i) | 115 subdir = os.path.join(srcdir, i) |
| 116 if os.path.exists(os.path.join(srcdir, i, 'setup.py')): | 116 if os.path.exists(os.path.join(srcdir, i, 'setup.py')): |
| 117 call([python, 'setup.py', 'develop'], cwd=subdir) | 117 call([python, 'setup.py', 'develop'], cwd=subdir) |
| 118 setup_pys.add(i) | 118 setup_pys.add(i) |
| 119 | 119 |
| 120 # add virtualenv to the virtualenv (!) | |
| 121 virtualenv_dir = os.path.dirname(virtualenv) | |
| 122 if os.path.exists(os.path.join(virtualenv_dir, 'setup.py')): | |
| 123 call([python, 'setup.py', 'install'], cwd=virtualenv_dir) | |
| 124 | |
| 120 # TODO: | 125 # TODO: |
| 121 # - add carton to the virtualenv (!) | 126 # - add carton to the virtualenv (!) |
| 122 | |
| 123 # - add virtualenv to the virtualenv (!) | |
| 124 | |
| 125 # - cleanup tempdir | 127 # - cleanup tempdir |
| 126 # shutil.rmtree(tempdir) | 128 # shutil.rmtree(tempdir) |
| 127 """ | 129 """ |
| 128 | 130 |
| 129 def isURL(path): | 131 def isURL(path): |
