Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2014 11:22:38 +0200
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        python@freebsd.org
Subject:   bsd.python.mk patch for review
Message-ID:  <CAALwa8mp%2BYGS_zxxYHGt73rtv-DSdDDJcqoFpjpeiJGSj3931g@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi there,

Currently default python versions are inconsistent:
- python 3.3 is the default python3 version
- python 3.4 is preferred over python 3.3 when a port needs a python
version in a specific range

The patch below should address this,  please review/test.

Cheers,

Antoine

Index: Mk/bsd.python.mk
===================================================================
--- Mk/bsd.python.mk    (revision 352778)
+++ Mk/bsd.python.mk    (working copy)
@@ -289,7 +289,7 @@
                     But you specified ${_PYTHON_VERSION}
 .else
 .undef _PYTHON_VERSION
-.for ver in ${_PYTHON_ALLBRANCHES}
+.for ver in ${PYTHON2_DEFAULT} ${PYTHON3_DEFAULT} ${_PYTHON_ALLBRANCHES}
 __VER=        ${ver}
 .if !defined(_PYTHON_VERSION) && \
     !(!empty(_PYTHON_VERSION_MINIMUM) && ( \

[-- Attachment #2 --]
Index: Mk/bsd.python.mk
===================================================================
--- Mk/bsd.python.mk	(revision 352778)
+++ Mk/bsd.python.mk	(working copy)
@@ -289,7 +289,7 @@
 					But you specified ${_PYTHON_VERSION}
 .else
 .undef _PYTHON_VERSION
-.for ver in ${_PYTHON_ALLBRANCHES}
+.for ver in ${PYTHON2_DEFAULT} ${PYTHON3_DEFAULT} ${_PYTHON_ALLBRANCHES}
 __VER=		${ver}
 .if !defined(_PYTHON_VERSION) && \
 	!(!empty(_PYTHON_VERSION_MINIMUM) && ( \
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAALwa8mp%2BYGS_zxxYHGt73rtv-DSdDDJcqoFpjpeiJGSj3931g>