cd /usr/ports/lang/python27/
make install
You want to build for the py27 "flavor". To do that, just addI don't mean the package for the language itself. I mean pip installables, like pip27-sqlite3 or py27-qt5.
Sorry for the confusion.
FLAVOR=py27
to the command line:# Building databases/py-sqlite3
cd /usr/ports/databases/py-sqlite3
# No flavor specified, uses default Python version.
make clean install
# Python 2.7 flavor specified
make FLAVOR=py27 clean install
# Python 3.8 flavor specified
make FLAVOR=py38 clean install
DEFAULT_VERSIONS += python=3.8 python2=2.7 python3=3.8
python=2.7
because it's EOL. If you must build for Python 2.7, specify FLAVOR=py27
on the command line.The closest thing to documentation for it that I found was in the Ports/FlavorsTools entry of the FreeBSD Wiki:Awesome, thank you memreflect!
Was that in the docs somewhere that I missed?
Unfortunately, I found nothing about ports flavors in ports(7), make.conf(5), /usr/ports/README, or 4.5 Using the Ports Collection in the FreeBSD Handbook. Maybe someone more knowledgeable will have a better reference.5. The chosen FLAVOR for a port origin should always be passed in as a make argument, not in the environment, likemake -C devel/foo all FLAVOR=bar
.