How to build and use Python 3.14.x on FreeBSD as the default version

This is my experiment running on machine where the site is hosted.

How to build and use Python 3.14.x on FreeBSD as the default version

First important thing is to add needed pieces in /etc/make.conf file

DEFAULT_VERSIONS+=python3=3.14
DEFAULT_VERSIONS+=python=3.14

The you must get working copy of feature python314 port from here.

Here is my example to upgrade from Python 3.13.8 to 3.14.0:

# sh
# portmaster -o lang/python314 python313
# REINSTALL="$(pkg info -oq '*py313*')"
# pkg delete -f "*py313*"
# portmaster $REINSTALL
# REBUILD=$(pkg query -g "%n:%dn" '*' | grep py3 | grep -v py314 | cut -d : -f 1 | sort -u)
# portmaster $REBUILD
# REBUILD2=$(pkg list | grep python-313 | xargs pkg which | awk '{print $6}' | sort -u)
# portmaster $REBUILD2

There is visible difference in performance after the upgrade.