ComputeCanada / software-stack-config

8 stars 3 forks source link

Updated cmake constraints to include latest version #65

Closed ccoulombe closed 9 months ago

ccoulombe commented 10 months ago

Use either 3.23.1 or 3.27.7 of our dummy wheels

mboisson commented 10 months ago

cette constrainte accepterait cmake==3.25 téléchargé

ccoulombe commented 10 months ago

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) ~ $ 
mboisson commented 10 months ago

On ne peut pas juste donner une liste de versions acceptables ?

ccoulombe commented 10 months ago

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.

ccoulombe commented 10 months ago

Sinon, on force tjrs la dernière version dispo : 3.27.7 par exemple

mboisson commented 10 months ago

Ça marcherait probablement en effet...