[kde-freebsd] [Bug 209204] Changing default Python version unduly difficult

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 8 16:44:51 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209204

David Naylor <dbn at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
             Status|In Progress                 |Closed

--- Comment #6 from David Naylor <dbn at FreeBSD.org> ---
Oops, apologies.  The correct approach to what you want to achieve is:

# Variables, which can be set by a user:
#
# PYTHON_VERSION        - The chosen Python interpreter including the version,
#                         e.g. python2.7, python3.3, etc. This allows the user
#                         to override the currently chosen default version and
#                         to install the port for a specific Python version.
#                         It must not be set by a port.

For example:
# cd /usr/ports/textproc/py-pygments
# make -V PYTHON_VER
2.7
# make -V PYTHON_VER PYTHON_VERSION=python3.5
3.5

i.e. if you want to install ports for python versions other than the default
(as already set in your system, per PEP 394) then use PYTHON_VERSION, this can
be set in /etc/make.conf to effectively change the default.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list