From: Guytri KASTANE Date: Tue, 20 Feb 2024 11:43:53 +0000 (+0100) Subject: decode pip version X-Git-Tag: V9_13_0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=00a94c7b2e189587897f2fed3d7ee94a1f642800;p=tools%2Fsat.git decode pip version --- diff --git a/commands/compile.py b/commands/compile.py index ded2297..0368549 100644 --- a/commands/compile.py +++ b/commands/compile.py @@ -17,6 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import os +import sys import re import subprocess import src @@ -544,7 +545,7 @@ def compile_product_pip(sat, shell=True, cwd=config.LOCAL.workdir, env=build_environ.environ.environ, - stderr=subprocess.STDOUT).strip() + stderr=subprocess.STDOUT).decode(sys.stdout.encoding).strip() pip_build_options=int(res_pip_version.split('.')[0]) < 21 except: pip_build_options= True