Closed ccoulombe closed 9 months ago
cette constrainte accepterait cmake==3.25 téléchargé
Pense qu'il va falloir des tests cases ;)
~ $ module load python/3.10
~ $ makevenv
(12526) ~ $
(12526) ~ $ # Passes, and install asked version or latest
(12526) ~ $ PIP_CONSTRAINT= pip install -q cmake -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
(12526) ~ $ pip list | fgrep cmake
cmake 3.27.7+dummy.computecanada
(12526) ~ $ PIP_CONSTRAINT= pip install -q cmake==3.23.1 -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
(12526) ~ $ pip list | fgrep cmake
cmake 3.23.1+dummy.computecanada
(12526) ~ $ PIP_CONSTRAINT= pip install -q cmake==3.27.7 -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
(12526) ~ $ pip list | fgrep cmake
cmake 3.27.7+dummy.computecanada
(12526) ~ $ PIP_CONSTRAINT= pip install -q 'cmake<=3.25' -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
(12526) ~ $ pip list | fgrep cmake
cmake 3.23.1+dummy.computecanada
(12526) ~ $ PIP_CONSTRAINT= pip install -q 'cmake>=3.25' -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
(12526) ~ $ pip list | fgrep cmake
cmake 3.27.7+dummy.computecanada
(12526) ~ $
(12526) ~ $ # Must fails
(12526) ~ $ PIP_CONSTRAINT= pip install -q cmake==3.25 -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
ERROR: Cannot install cmake==3.25 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
(12526) ~ $ PIP_CONSTRAINT= pip install -q 'cmake>=3.28' -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
ERROR: Cannot install cmake>=3.28 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
(12526) ~ $ PIP_CONSTRAINT= pip install -q 'cmake<3.23' -c ~/rsnt/software-stack-config/python/constraints-buildnode.txt
ERROR: Cannot install cmake<3.23 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
(12526) ~ $
On ne peut pas juste donner une liste de versions acceptables ?
Non.. :( Sinon c'est un bug ds pip..mais je n'ai pas trouvé comment spécifier deux seules versions sans exclure les versions entre l'intervalle.
J'aurais pensé que pip aurait conservé la version local (dummy+computecanada
) mais malgré tout 3.25.0
est installée par exemple.
Sinon, on force tjrs la dernière version dispo : 3.27.7 par exemple
Ça marcherait probablement en effet...
Use either 3.23.1 or 3.27.7 of our dummy wheels