Files
Dan Villiom Podlaski Christiansen c245213d2e python_select, python3_select, pip_select: add Apple's Python 3 versions
Apple added Python 3.7 in Xcode 11, and Xcode 12 contains 3.8. As far
as I can tell, once Apple adds a Python 3 to an OS, it stays there.
2020-10-23 19:48:55 +02:00

50 lines
1.4 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup select 1.0
name python3_select
version 0.0
revision 2
categories sysutils
platforms darwin
supported_archs noarch
configure.cxx_stdlib
license BSD
maintainers nomaintainer
description Common files for selecting default Python 3 version
long_description This port installs files that allow 'port select' \
to create links to the preferred default version \
of Python 3.
homepage https://www.macports.org/
distfiles
use_configure no
build {}
destroot {}
# Documentation for Python 3 ports:
# PortGroup select 1.0
# set pythonNoDot python[string map {. {}} $branch]
# select.entries [list python3 python3-$pythonNoDot $pythonNoDot]
select.entries {python3 base} \
{python3 none}
platform darwin {
set apple_pythons [
if {${os.major} == 19} {
list python37-apple \
python38-apple
} elseif {${os.major} == 20} {
list python38-apple
}
]
foreach python $apple_pythons {
select.entries-append [list python3 {*}$python]
}
}
livecheck.type none