# HG changeset patch # User Jeff Hammel # Date 1310173869 25200 # Node ID 9c710f06e51de029f365334ba19d7c690edfb0f7 # Parent 46882eaebb598622fd7b5b5754af97394661f7c1 add virtualenv to the virtualenv(!) diff -r 46882eaebb59 -r 9c710f06e51d carton.py --- 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) """