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 <arskine.code@gmail.com>
This commit is contained in:
parent
6a13260e67
commit
d41c1c4c00
|
@ -342,20 +342,6 @@ class GitUpdater:
|
||||||
async def _update_virtualenv(self, rebuild_env=False):
|
async def _update_virtualenv(self, rebuild_env=False):
|
||||||
# Update python dependencies
|
# Update python dependencies
|
||||||
bin_dir = os.path.dirname(self.env)
|
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(
|
reqs = os.path.join(
|
||||||
self.repo_path, REPO_DATA[self.name]['requirements'])
|
self.repo_path, REPO_DATA[self.name]['requirements'])
|
||||||
if not os.path.isfile(reqs):
|
if not os.path.isfile(reqs):
|
||||||
|
|
Loading…
Reference in New Issue