]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
fix bug in pip major version comparison
authorGuytri Kastane <guytri.kastane@cea.fr>
Fri, 2 Feb 2024 13:31:23 +0000 (14:31 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 2 Feb 2024 13:31:23 +0000 (14:31 +0100)
commands/compile.py

index b6da2f326012a9ee9245719c6a4764665f500403..ded2297cc312acf04b14d97123096ed75968d20a 100644 (file)
@@ -545,7 +545,7 @@ def compile_product_pip(sat,
                                cwd=config.LOCAL.workdir,
                                env=build_environ.environ.environ,
                                stderr=subprocess.STDOUT).strip()
-        pip_build_options=res_pip_version.split('.')[0] < 21
+        pip_build_options=int(res_pip_version.split('.')[0]) < 21
     except:
         pip_build_options= True
     # d- install (in python or in separate product directory)