improve loading the saved build env
Assume that the environment pickle can be encoded as utf-8
when loaded.
@@ -65,7 +65,7 @@ def perform_build_command(logfile, command, context, keep_link, silent=False,
original_env_file)
with open(original_env_file, 'rb') as env_file:
- original_env = pickle.load(env_file)
+ original_env = pickle.load(env_file, encoding='utf-8')
except Exception as ex:
LOG.warning(str(ex))
