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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 4 06:43:39 UTC 2016


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

David Naylor <dbn at FreeBSD.org> changed:

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

--- Comment #3 from David Naylor <dbn at 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 build
logs would give a clue as to the solution.  

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=python=3.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.  

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 the
default until you uninstall all ports that depend on lang/python, inclusive,
and rebuild them all with the new default.  

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.  

I hope this clarifies the issue.

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


More information about the kde-freebsd mailing list