From nobody Sat Dec 04 13:19:23 2021 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E589E18BDD84 for ; Sat, 4 Dec 2021 13:19:26 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J5qzL5F0Wz4bjB; Sat, 4 Dec 2021 13:19:26 +0000 (UTC) (envelope-from se@freebsd.org) Received: from [IPV6:2003:cd:5f1d:f700:8157:e470:9779:452a] (p200300cd5f1df7008157e4709779452a.dip0.t-ipconnect.de [IPv6:2003:cd:5f1d:f700:8157:e470:9779:452a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id F2313249BB; Sat, 4 Dec 2021 13:19:25 +0000 (UTC) (envelope-from se@freebsd.org) Message-ID: Date: Sat, 4 Dec 2021 14:19:23 +0100 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: devel/py-pyparsing and devel/py-packaging have circular dependency Content-Language: en-US To: Alexey Dokuchaev Cc: Koichiro Iwao , ports-developers@freebsd.org, python@freebsd.org References: From: Stefan Esser In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------fcV3zL970GwzTA6Rexx7B2mS" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638623966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZPY/eje/ORghgCMH943eYpvIyqz1k7v/ktjwkvJ2ynE=; b=pyAMY//LLKU4npcoLTdaC75AXBy+/C+dqNC+bMILr8FPklwzXXR8K3EFF8lfIM2p8pHLeu OWGh4mRjFYzs4aLtwN4l8r14iUiU2xmyYLO4laAUjbZIKbRhKYNA+O/4iOIAuySlOB+VwI bwdXVaT5NyB84G/vI7+1bm7B8SlzYpzv74QdBydoZhrGiWqi7yrsC2j+ilAUnlZQ7HIK3r 76LXR7ykwRB/Pu0v9u1PVm/7GYIrb2ks7QRoho3HmmKdH094MQlnlWa6jhUKUDWWrowNDV QnLOlZbWD17hy2fQzKj7rxTMjaCbsp9CucH+lLiMcLU3HUECIefCOxJcOzYPKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638623966; a=rsa-sha256; cv=none; b=ihuZUAk16xE3oSFIRNySZKFDNxGrZn2ZsxYMhwdgRiifrpKosAVnhg3Z+mVGc1SmrhRysl 72yj3yQ7IPMn6nL9xIl7+bfiortPwA/UtEqjOw5DxFxiQq9dhBz+BwSiIwyyePWZjPACK6 cHejuCbspIyB7iT6WM2k5h2rHuqGoBMrHrIxynko+yl4b8wWm4C7Mra7df2VxPWt4+Bwo1 6Ch79I0YymG+dQrMQXbbLhzuHe1gZLfGuULOrtzvdBGDUFbr59g3VNPBPz12gCaJKItfV3 0cdGwOU++XlErjHCPNub2trFrl1MdIg67rergy/spH3NTx4adYpFOAJ+kEpFyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------fcV3zL970GwzTA6Rexx7B2mS Content-Type: multipart/mixed; boundary="------------4jNReMAWgRYQ0Qz4tCUNyw0O"; protected-headers="v1" From: Stefan Esser To: Alexey Dokuchaev Cc: Koichiro Iwao , ports-developers@freebsd.org, python@freebsd.org Message-ID: Subject: Re: devel/py-pyparsing and devel/py-packaging have circular dependency References: In-Reply-To: --------------4jNReMAWgRYQ0Qz4tCUNyw0O Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 04.12.21 um 10:51 schrieb Alexey Dokuchaev: > On Sat, Dec 04, 2021 at 05:45:55PM +0800, Po-Chuan Hsieh wrote: >> The python dependencies are all correct. >> py-pyparsing DOES NOT REQUIRE py-packaging. True, but apparently only when building in a clean jail. > I concur; just built and packaged those ports successfully in my tinder= box > against Python versions 3.8 and 3.9. Yes, it works when building with poudriere, but no, it does not work with a plain "make" on a system with other Python ports already installed. In order to observe the issue, I had to delete the two packages with "pkg delete -f". They cannot be re-installed from a port using a plain "make" on the base system, thereafter. I do not know how such a dependency can be injected into the python port build, but just invoking setup.py in the work directories of these two ports will cause the error messages reported before: >> devel/py-packaging: >> pkg_resources.DistributionNotFound: The 'pyparsing!=3D3.0.5,>=3D2.0.2'= distribution was not found and is required by packaging >> devel/py-pyparsing: >> pkg_resources.DistributionNotFound: The 'packaging>=3D20.0' distributi= on was not found and is required by the application I have looked for references to packaging in my python site-packages directory, but I do not know and did not check if any of those might inject a dependency on py-packaging when building some other port: /usr/local/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__= =2Epy: from pip._vendor import packaging /usr/local/lib/python3.8/site-packages/sipbuild/project.py: import packaging /usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py: from pkg_resources.extern import packaging /usr/local/lib/python3.8/site-packages/build/env.py: import packaging.requirements /usr/local/lib/python3.8/site-packages/build/env.py: import packaging.version /usr/local/lib/python3.8/site-packages/build/__init__.py: import packaging.requirements /usr/local/lib/python3.8/site-packages/setuptools/command/egg_info.py: from setuptools.extern import packaging /usr/local/lib/python3.8/site-packages/setuptools/dist.py: from setuptools.extern import packaging Regards, STefan --------------4jNReMAWgRYQ0Qz4tCUNyw0O-- --------------fcV3zL970GwzTA6Rexx7B2mS Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmGratsFAwAAAAAACgkQR+u171r99URW 3ggAtoKrnMvRYpNobFTM6egFGXCN3jbPs5iQEIS5N3rwy4Metja5BngzmW4OQW4vcVGkWz4O9lqo 74tieKtYpxun2ZCsQY1r4kc/wz5tNa6iBKLdZA+SkFUg2OfRoIeTShyF9oZnQT6T6NwxbjIpBJ9H FrXhnHCJipzrNbE/nPZLr+nf/G9MdUkk8JiwO7dbfl1O6tY3ONBri4/VLYdEJwprw07nHanJoXug Ym1xSPNUl2Qq48pt+BazbPajueKAiyQ2SlGphOIxOoQys0an7xDRA1cof+Ax3WWZ9m7vdt3q8FUf 2eZnHR7jfQ19liHoS1c1PQmoglkyr7W2F3TjFrjP4Q== =t2t4 -----END PGP SIGNATURE----- --------------fcV3zL970GwzTA6Rexx7B2mS--