I am moving to Python 3.10; set "DEFAULT_VERSIONS+= python=3.10" in "/etc/make.conf". Build of www/py-requests for python 3.10 stopped because textproc/py-chardet could not be concurrently installed for bot python 3.8 & 3.10 ... Link: @bin/chardetect --> bin/chardetect-3.10 ====> Compressing man pages (compress-man) ===> Installing for py310-chardet-4.0.0,1 ===> Checking if py310-chardet is already installed ===> Registering installation for py310-chardet-4.0.0,1 as automatic Installing py310-chardet-4.0.0,1... pkg-static: py310-chardet-4.0.0,1 conflicts with py38-chardet-4.0.0,1 (installs files into the same place). Problematic file: /usr/local/bin/chardetect *** Error code 1 ... I would have expected to install textproc/py-chardet port or package for all the supported versions of python interpreter installed.
This port uses USE_PYTHON=concurrent, which all else being equal, should python-version suffix all files in LOCALBASE/bin. You may be seeing conflicts given you are switching between default Python versions. Specifically as an example, if a user has: DEFAULT_VERSIONS=python=3.8 1) And installs py-chardet, a 'default link' for LOCALBASE/bin/chardetect will be installed pointing to LOCALBASE/bin/chardetect-3.8 User then switches to DEFAULT_VERSIONS=python=3.10 (without deinstalling py38-chardet)... 2) And installs py-chardet again , a 'default link' for LOCALBASE/bin/chardetect install is attempted, pointing to LOCALBASE/bin/chardetect-3.10, which conflicts with the installed 'default link' from (1)
Ok, makes sense.