Mercurial > hg > carton
changeset 22:9c710f06e51d
add virtualenv to the virtualenv(!)
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 08 Jul 2011 18:11:09 -0700 (2011-07-09) |
parents | 46882eaebb59 |
children | 987086aad234 |
files | carton.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/carton.py Fri Jul 08 18:04:21 2011 -0700 +++ b/carton.py Fri Jul 08 18:11:09 2011 -0700 @@ -117,11 +117,13 @@ call([python, 'setup.py', 'develop'], cwd=subdir) setup_pys.add(i) +# add virtualenv to the virtualenv (!) +virtualenv_dir = os.path.dirname(virtualenv) +if os.path.exists(os.path.join(virtualenv_dir, 'setup.py')): + call([python, 'setup.py', 'install'], cwd=virtualenv_dir) + # TODO: # - add carton to the virtualenv (!) - -# - add virtualenv to the virtualenv (!) - # - cleanup tempdir # shutil.rmtree(tempdir) """