Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 May 2016 06:43:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209204] Changing default Python version unduly difficult
Message-ID:  <bug-209204-13-L07PoYDbkk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209204-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209204-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209204

David Naylor <dbn@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress
                 CC|                            |dbn@FreeBSD.org

--- Comment #3 from David Naylor <dbn@FreeBSD.org> ---
The build logs would allow us to have a better understanding of what the
problem is.  In this particular case I suspect a warning message in the bui=
ld
logs would give a clue as to the solution.=20=20

Also, I am able to reproduce the problem on my system:
# cd /usr/ports/textproc/py-pygments
# make -V PYTHON_VER
2.7
# make -V PYTHON_VER DEFAULT_VERSIONS=3Dpython=3D3.5
2.7
# make -V WARNING
"Your requested default python version 3.5 is different from the installed
default python interpreter version 2.7"

The above warning is what should appear in your build logs.  If not we can
address that.=20=20

The issue is you have already installed lang/python (i.e. the default) as
version 2.7.  This means your system is "hard-coded" to use python-2.7 as t=
he
default until you uninstall all ports that depend on lang/python, inclusive,
and rebuild them all with the new default.=20=20

The effect of "default" is stronger than what the word implies, it is more =
akin
to choosing i386 and amd64 at install time.  Once you have chosen it, that's
it.  Until you undo and redo.  In other words, the choice of default is
persistent and cannot be changed, only undone.=20=20

I hope this clarifies the issue.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209204-13-L07PoYDbkk>