Skip to content

Commit

Permalink
Merge pull request #16 from alex/patch-1
Browse files Browse the repository at this point in the history
Speed clone_virtualenv up slightly by removing duplicate calls to spawn process
  • Loading branch information
edwardgeorge committed Apr 27, 2014
2 parents f0a64c1 + 2cc4909 commit 46de62c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clonevirtualenv.py
Expand Up @@ -86,8 +86,9 @@ def clone_virtualenv(src_dir, dst_dir):
# paths in the sys.path of new python env. right?
logger.info('fixing paths in sys.path...')
fixup_syspath_items(sys_path, src_dir, dst_dir)
remaining = has_old(_virtualenv_sys(dst_dir)[1])
assert not remaining, _virtualenv_sys(dst_dir)
v_sys = _virtualenv_sys(dst_dir)
remaining = has_old(v_sys[1])
assert not remaining, v_sys


def fixup_scripts(old_dir, new_dir, version, rewrite_env_python=False):
Expand Down

0 comments on commit 46de62c

Please sign in to comment.