From 48843ac0100fb4369edf78f2d37dc99a5a1c3a23 Mon Sep 17 00:00:00 2001 From: Dong Joon Oh <201904014@o.cnu.ac.kr> Date: Wed, 30 Nov 2022 20:06:32 +0900 Subject: [PATCH] bugfix: remove '\x1b[0m' in installed when it exists --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 6505895fab..37ef4ced59 100755 --- a/setup.py +++ b/setup.py @@ -272,6 +272,8 @@ def get_installed_conda_packages(self) -> Dict[str, str]: installed = [re.sub(" +", " ", line.strip()) for line in chk.splitlines() if not line.startswith("#")] retval = {} + if installed.index('\x1b[0m') != -1: + installed.remove('\x1b[0m') for pkg in installed: item = pkg.split(" ") retval[item[0]] = item[1]