Date: Mon, 10 Oct 2022 13:11:38 +0900 From: Tatsuki Makino <tatsuki_makino@hotmail.com> To: Shane Ambler <FreeBSD@ShaneWare.Biz> Cc: ports@freebsd.org Subject: Re: Python version dependencies in pkg Message-ID: <PSAPR03MB56394DAD9BEDE8EE08DD1B1DFA209@PSAPR03MB5639.apcprd03.prod.outlook.com> In-Reply-To: <98a53c30-92bc-8119-0043-eb51be740233@ShaneWare.Biz> References: <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> <CAN6yY1sGnDF-oReRMFeVz78oGoTfUvsvwUOQwoBZWN9ibjTw3A@mail.gmail.com> <B2A3A400-F21A-4E92-8116-41E7945E4E5C@gushi.org> <CAN6yY1ujCH9Xnv3QN-GF8hN75v%2BxGkOTHrsr25jzxGNGdYW2vQ@mail.gmail.com> <89D2B2D7-FA3D-46F5-A93B-4846950A157C@gushi.org> <65597c37-813b-d0ed-ea9f-8591b68cf097@gwdg.de> <20220929083939.Horde.Viq2uLBgUctcrsgmaJxN_1u@webmail.leidinger.net> <F4395689-FFD7-4591-BE5C-3F15983BF82D@gushi.org> <PSAPR03MB5639D5A4E9655F3AE61361E6FA579@PSAPR03MB5639.apcprd03.prod.outlook.com> <1fdde4e6-fa80-720f-7c85-8417d2a3b642@ShaneWare.Biz> <PSAPR03MB5639F69C594D482C7A152DC0FA569@PSAPR03MB5639.apcprd03.prod.outlook.com> <adf633cd-9c47-c1a1-0201-3121d55f60e3@ShaneWare.Biz> <PSAPR03MB56396A36ED700020784DBDD3FA5B9@PSAPR03MB5639.apcprd03.prod.outlook.com> <ac71f8a1-4509-fca2-6cd5-a1e44b5e7120@ShaneWare.Biz> <PSAPR03MB5639E515CAF178CBFFBC5836FA5E9@PSAPR03MB5639.apcprd03.prod.outlook.com> <98a53c30-92bc-8119-0043-eb51be740233@ShaneWare.Biz>
next in thread | previous in thread | raw e-mail | index | archive | help
Shane Ambler wrote on 2022/10/10 12:04: > On 8/10/22 3:06 pm, Tatsuki Makino wrote: > >> This is the behavior that causes the difference between USE_PYTHON=allflavors and -D BUILD_ALL_PYTHON_FLAVORS, which I am relentlessly :) repeating. > > Notice that valid python versions vary per port - > > % cd /usr/ports/math/py-numpy > % make -V _PYTHON_VERSIONS -V _PYTHON_VERSION_MINIMUM -V > _PYTHON_VERSION_MAXIMUM -V _VALID_PYTHON_VERSIONS -V FLAVORS > 3.9 3.8 3.7 3.10 3.11 2.7 > > py-numpy has USES=python:3.8-3.10 which matches that valid list No, no, no, no :) math/py-numpy has USE_PYTHON=allflavors defined, so all FLAVORs from 3.8-3.10 are in FLAVORS. > While - > % cd /usr/ports/devel/py-six > % make -V _PYTHON_VERSIONS -V _PYTHON_VERSION_MINIMUM -V > _PYTHON_VERSION_MAXIMUM -V _VALID_PYTHON_VERSIONS -V FLAVORS > 3.9 3.8 3.7 3.10 3.11 2.7 (Slightly omitted) > py38 py27 py39 py37 py310 py311 > > py-six has USES=python:2.7+ so all versions are valid My environment returns following. I don't know when the porttree is from. That is at least what I updated on portsnap after October 10, Japanese Standard Time (UTC+09:00). I can't touch it right now because I'm in a chromium build process :) > make -C /usr/ports/devel/py-six/ -V _PYTHON_VERSIONS -V _PYTHON_VERSION_MINIMUM -V _PYTHON_VERSION_MAXIMUM -V _VALID_PYTHON_VERSIONS -V FLAVORS 3.9 3.8 3.7 3.10 3.11 2.7 2.7 3.9 2.7 3.8 3.7 3.10 3.11 py39 py27 > If your FLAVORS list is shorter than that, maybe you have another > setting in make.conf causing that. Try removing your make.conf and see > if you get different values. The narrowing down of FLAVORS to two is the behavior of Mk/Uses/python.mk that I wrote about in my previous email. When FLAVORS is three, If it is a mistake in the definition of DEFAULT_VERSIONS=python{,[23]}=, you may get a warning by the string written below. https://cgit.freebsd.org/ports/tree/Mk/Uses/python.mk?id=7d48381cbd686ee8d77871bc25cf1e926a314f85#n352 And, as the warn message goes, "if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf" If all FLAVOR is visible, the following conditions will have been met . if defined(BUILD_ALL_PYTHON_FLAVORS) || defined(_PYTHON_FEATURE_ALLFLAVORS) Or are there changes that are not included in the porttree I got from portsnap? Regards.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PSAPR03MB56394DAD9BEDE8EE08DD1B1DFA209>