Switch default version of python to 3.6

PR:		234633
With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D18743
This commit is contained in:
Antoine Brodin 2019-04-10 05:47:26 +00:00
parent aaeb9d9849
commit e413c34db1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498529
6 changed files with 14 additions and 5 deletions

View file

@ -82,7 +82,7 @@ PGSQL_DEFAULT?= 9.5
# Possible values: 7.1, 7.2, 7.3
PHP_DEFAULT?= 7.2
# Possible values: 2.7, 3.5, 3.6, 3.7
PYTHON_DEFAULT?= 2.7
PYTHON_DEFAULT?= 3.6
# Possible values: 2.7
PYTHON2_DEFAULT?= 2.7
# Possible values: 3.5, 3.6, 3.7

View file

@ -5,6 +5,15 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20190410:
AFFECTS: users of python
AUTHOR: antoine@FreeBSD.org
Default version of python was switched to 3.6.
For ports users wanting to keep version 2.7 as default,
add DEFAULT_VERSIONS+= python=2.7 to make.conf
20190328:
AFFECTS: www/firefox-i18n, www/firefox-esr-i18n, mail/thunderbird-i18n, www/seamonkey-i18n
AUTHOR: gecko@FreeBSD.org

View file

@ -38,7 +38,7 @@ PLIST= ${.CURDIR}/pkg-plist
USES+= python
USE_PYTHON= flavors
USE_GNOME+= pygobject3
.if ${FLAVOR:Upy27:Mpy2*}
.if ${FLAVOR:Upy36:Mpy2*}
CONFIGURE_ARGS+= --disable-python3
BUILD_WRKSRC= ${WRKSRC}/loaders/python
INSTALL_WRKSRC= ${WRKSRC}/loaders/python

View file

@ -31,7 +31,7 @@ post-install:
.include <bsd.port.pre.mk>
.if ${FLAVOR:Upy27:Mpy3*}
.if ${FLAVOR:Upy36:Mpy3*}
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-miltermodule.c
.endif

View file

@ -35,7 +35,7 @@ OPTIONS_DEFINE= EXAMPLES GTKBACKEND GTKAGGBACKEND \
QT5AGGBACKEND TKAGGBACKEND WXAGGBACKEND
OPTIONS_DEFAULT= GTKBACKEND GTKAGGBACKEND TKAGGBACKEND
OPTIONS_SUB= yes
.if ${FLAVOR:U:Mpy3*}
.if ${FLAVOR:Upy36:Mpy3*}
# x11-toolkits/py-gtk2, x11-toolkits/py-wxPython28 do not support Python 3
OPTIONS_EXCLUDE= GTKBACKEND GTKAGGBACKEND WXAGGBACKEND
.endif

View file

@ -20,7 +20,7 @@ OPTIONS_DEFINE= WX
OPTIONS_DEFAULT=WX
WX_DESC= Provide a wxSpellCheckerDialog
OPTIONS_SUB= yes
.if ${FLAVOR:U:Mpy3*}
.if ${FLAVOR:Upy36:Mpy3*}
OPTIONS_EXCLUDE= WX
.endif