Date: Mon, 10 Oct 2022 13:34:47 +1030 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Tatsuki Makino <tatsuki_makino@hotmail.com> Cc: ports@freebsd.org Subject: Re: Python version dependencies in pkg Message-ID: <98a53c30-92bc-8119-0043-eb51be740233@ShaneWare.Biz> In-Reply-To: <PSAPR03MB5639E515CAF178CBFFBC5836FA5E9@PSAPR03MB5639.apcprd03.prod.outlook.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > Specifically here: https://cgit.freebsd.org/ports/tree/Mk/Uses/python.mk?id=7d48381cbd686ee8d77871bc25cf1e926a314f85#n414 > If the above variables are not defined here, FLAVORS will be narrowed down to only the PYTHON{,[23]}_DEFAULT flavors. > Currently _PYTHON_ARGS defaults to 3.7+, so only py39 remains. > If FLAVOR that does not exist in FLAVORS is specified, IGNORE is defined here. > https://cgit.freebsd.org/ports/tree/Mk/bsd.port.mk?id=b74ed0f79d32e7564969faac41a2e1083bbc49f4#n1474 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 3.8 3.10 3.8 3.9 3.10 py38 py39 py310 py-numpy has USES=python:3.8-3.10 which matches that valid list 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 2.7 3.8 2.7 3.9 3.7 3.10 3.11 py38 py27 py39 py37 py310 py311 py-six has USES=python:2.7+ so all versions are valid 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. Also check that you have a complete up-to-date ports tree, a local modification can prevent git checkouts. -- FreeBSD - the place to B...Software Developing Shane Ambler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98a53c30-92bc-8119-0043-eb51be740233>