From fd037f59605ca56425df423784647632d87d115e Mon Sep 17 00:00:00 2001 From: Janitha Karunaratne Date: Fri, 20 Dec 2013 16:44:18 -0600 Subject: [PATCH] Fixes #5381 easy_install bug when used with virtualenv --- library/packaging/easy_install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/packaging/easy_install b/library/packaging/easy_install index eae361c432..bdacf8e464 100644 --- a/library/packaging/easy_install +++ b/library/packaging/easy_install @@ -135,7 +135,6 @@ def main(): name = module.params['name'] env = module.params['virtualenv'] executable = module.params['executable'] - easy_install = _get_easy_install(module, env, executable) site_packages = module.params['virtualenv_site_packages'] virtualenv_command = module.params['virtualenv_command'] @@ -159,6 +158,8 @@ def main(): out += out_venv err += err_venv + easy_install = _get_easy_install(module, env, executable) + cmd = None changed = False installed = _is_package_installed(module, name, easy_install)