Skip to content

Commit

Permalink
xonsh: add py311 subport, make default
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamschula committed May 31, 2023
1 parent 8e3e74c commit e5e5954
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions shells/xonsh/Portfile
Expand Up @@ -26,16 +26,17 @@ checksums rmd160 8898c37fb8456125a274716ee751df70c94ca381 \
sha256 0cfaa20f2a036340dfb4e934ce673176956d40aedb9674098ebbe8c8f088090b \
size 12667425

variant python37 conflicts python38 python39 python310 description {Use Python 3.7} {}
variant python38 conflicts python37 python39 python310 description {Use Python 3.8} {}
variant python39 conflicts python37 python38 python310 description {Use Python 3.9} {}
variant python310 conflicts python37 python38 python39 description {Use Python 3.10} {}

if {![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39]} {
default_variants +python310
variant python37 conflicts python38 python39 python310 python311 description {Use Python 3.7} {}
variant python38 conflicts python37 python39 python310 python311 description {Use Python 3.8} {}
variant python39 conflicts python37 python38 python310 python311 description {Use Python 3.9} {}
variant python310 conflicts python37 python38 python39 python311 description {Use Python 3.10} {}
variant python311 conflicts python37 python38 python39 python310 description {Use Python 3.11} {}

if {![variant_isset python37] && ![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310]} {
default_variants +python311
}

foreach pv {310 39 38 37} {
foreach pv {311 310 39 38 37} {
if {[variant_isset python${pv}]} {
python.default_version ${pv}
break
Expand Down

0 comments on commit e5e5954

Please sign in to comment.