From d41c1c4c00b15fed6ecdfa00b1ea0b73b5e50a42 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sat, 28 Nov 2020 07:43:20 -0500 Subject: [PATCH] update_manager: disable python env rebuild The current method for rebuilding the virtualenv fails. A potential workaround is to do the rebuild and subsequent update with a script. For now, disable the rebuild. Signed-off-by: Eric Callahan --- moonraker/plugins/update_manager.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/moonraker/plugins/update_manager.py b/moonraker/plugins/update_manager.py index d820820..5f6d4ba 100644 --- a/moonraker/plugins/update_manager.py +++ b/moonraker/plugins/update_manager.py @@ -342,20 +342,6 @@ class GitUpdater: async def _update_virtualenv(self, rebuild_env=False): # Update python dependencies bin_dir = os.path.dirname(self.env) - if rebuild_env: - env_path = os.path.normpath(os.path.join(bin_dir, "..")) - env_args = REPO_DATA[self.name]['venv_args'] - self._notify_status(f"Creating virtualenv at: {env_path}...") - if os.path.exists(env_path): - shutil.rmtree(env_path) - try: - await self.execute_cmd( - f"virtualenv {env_args} {env_path}") - except Exception: - self._log_exc(f"Error creating virtualenv") - return - if not os.path.expanduser(self.env): - raise self._log_exc("Failed to create new virtualenv", False) reqs = os.path.join( self.repo_path, REPO_DATA[self.name]['requirements']) if not os.path.isfile(reqs):