From nobody Sat Dec 4 12:46:08 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 687CF18CE5A4 for ; Sat, 4 Dec 2021 12:46:15 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4J5qF31kj0z4Rb2; Sat, 4 Dec 2021 12:46:15 +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 6043D23CD0; Sat, 4 Dec 2021 12:46:14 +0000 (UTC) (envelope-from se@freebsd.org) Message-ID: <920a387a-a3d4-a7ba-c6e0-04ccc184f3c5@freebsd.org> Date: Sat, 4 Dec 2021 13:46:08 +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: Po-Chuan Hsieh References: From: Stefan Esser Cc: Koichiro Iwao , ports-developers@freebsd.org, python@freebsd.org In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------dtcG0rETpnTlBVq7I9RXCvhR" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638621975; 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=dP4u95Nhon9+iJeyox7EOrO7lqoQN0ihdzn5Rj3sLSk=; b=eKPEFUlfBXJKorf3Q8k+50ZX6pFSKLlxIxI66ovljUx6Y2o63lMC+rQuRkHQUbDdiGFhWF VMgdhg36YQPNZyUh0YOmalngw4I2YK4VffsQ98d07SsXqw9XW/FpSmRoMUvTk12bU7GHVb 9A/9NqwGw5BPHmtD4nTKTfQdotR7COQuerj3agpIgvHDv5P7TbnbHhnMrMAv+wXIYuhAMf pmJDSD6Un4tS4awSMeqXq8itIYuAxvU9zFXsL8Ud4S68Khf7UBUaWafnP6juDoNZ6/mR8O Oo0oT4H5yGkpFB+TjCae4MXuvtIvoqYeEH2EpOg1w9WcqbGZDri6CryokwFpoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638621975; a=rsa-sha256; cv=none; b=uHXJp7PyBMOEumfopYBExZrEYgzOZJjAkT/8WG+PcB2tJLDYu3PlS4C9RoShgB9gjubvx8 iHzu9WqXLBcVlCkybdYUgvgykKsR5EQghWK7G3MVGORaMZz8hQPwhsdW7rsSdyqs1nAsjS SEwBMNRD5litOmvVmyK/VWa4AwhTlTIgyPKyNZYjwhfpOV1r3sXvVp1/hyXOnOmvr+kKjU zMxUPQIA+RbedsZ8BN8+HB8clVmDSu+BeW3dRHlWjW2JoLocEuYthQCx5TD1WIlFEMQOtx NQnQ9d3i1fHtmi2DaJBeUNJ8Coe646Pbrdy+VafqBgB1j4VcNynkVmeE8L+HbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------dtcG0rETpnTlBVq7I9RXCvhR Content-Type: multipart/mixed; boundary="------------Gkjkc2SZVMQA1R09Ckl0TDfb"; protected-headers="v1" From: Stefan Esser To: Po-Chuan Hsieh Cc: Koichiro Iwao , ports-developers@freebsd.org, python@freebsd.org Message-ID: <920a387a-a3d4-a7ba-c6e0-04ccc184f3c5@freebsd.org> Subject: Re: devel/py-pyparsing and devel/py-packaging have circular dependency References: In-Reply-To: --------------Gkjkc2SZVMQA1R09Ckl0TDfb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 04.12.21 um 10:45 schrieb Po-Chuan Hsieh: > This is totally=C2=A0a portmaster issue (wrong order of build, install = and deinstall). > The python=C2=A0dependencies are all correct. Sorry, no, and please stop spreading this FUD and utter nonsense about portmaster being at fault! The error messages quoted by Iwao-san were obtained running a plain "make" in both of the port directories. > py-pyparsing DOES NOT REQUIRE py-packaging. In poudriere it does not. But it does when building the port on my system with other Python ports already installed: ----------------------------------------------------------------------- $ cd /usr/ports/devel/py-pyparsing $ make all =3D=3D=3D> License MIT accepted by the user =3D=3D=3D> py38-pyparsing-3.0.6 depends on file: /usr/local/sbin/pkg - = found =3D=3D=3D> Fetching all distfiles required by py38-pyparsing-3.0.6 for bu= ilding =3D=3D=3D> Extracting for py38-pyparsing-3.0.6 =3D> SHA256 Checksum OK for pyparsing-3.0.6.tar.gz. =3D=3D=3D> Patching for py38-pyparsing-3.0.6 =3D=3D=3D> py38-pyparsing-3.0.6 depends on package: py38-setuptools>0 -= found =3D=3D=3D> py38-pyparsing-3.0.6 depends on file: /usr/local/bin/python3= =2E8 - found =3D=3D=3D> Configuring for py38-pyparsing-3.0.6 Traceback (most recent call last): File "", line 1, in File "setup.py", line 23, in setup( # Distribution meta-data File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", l= ine 153, in setup return distutils.core.setup(**attrs) File "/usr/local/lib/python3.8/distutils/core.py", line 108, in setup _setup_distribution =3D dist =3D klass(attrs) File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 455, in __init__ _Distribution.__init__(self, { File "/usr/local/lib/python3.8/distutils/dist.py", line 292, in __init_= _ self.finalize_options() File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 800, in finalize_options for ep in sorted(eps, key=3Dby_order): File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 799, in eps =3D map(lambda e: e.load(), pkg_resources.iter_entry_points(group= )) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 2449, in load self.require(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 2472, in require items =3D working_set.resolve(reqs, env, installer, extras=3Dself.ext= ras) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'packaging>=3D20.0' distribution = was not found and is required by the application *** Error code 1 Stop. make[1]: stopped in /usr/git/ports/devel/py-pyparsing *** Error code 1 Stop. make: stopped in /usr/git/ports/devel/py-pyparsing ----------------------------------------------------------------------- And, with similar outcoming for devel/py-packaging: ----------------------------------------------------------------------- /usr/git/ports/devel/py-packaging root@StefanEsser> make -DNO_DEPENDS =3D=3D=3D> Configuring for py38-packaging-21.3 Traceback (most recent call last): File "", line 1, in File "setup.py", line 40, in setup( File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", l= ine 153, in setup return distutils.core.setup(**attrs) File "/usr/local/lib/python3.8/distutils/core.py", line 108, in setup _setup_distribution =3D dist =3D klass(attrs) File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 455, in __init__ _Distribution.__init__(self, { File "/usr/local/lib/python3.8/distutils/dist.py", line 292, in __init_= _ self.finalize_options() File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 800, in finalize_options for ep in sorted(eps, key=3Dby_order): File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line = 799, in eps =3D map(lambda e: e.load(), pkg_resources.iter_entry_points(group= )) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 2449, in load self.require(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 2472, in require items =3D working_set.resolve(reqs, env, installer, extras=3Dself.ext= ras) File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py"= , line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'pyparsing!=3D3.0.5,>=3D2.0.2' di= stribution was not found and is required by packaging *** Error code 1 Stop. make: stopped in /usr/git/ports/devel/py-packaging ----------------------------------------------------------------------- No portmaster involved, and devel/py-pyparsing definitely depends on devel/py-packaging. Apparently, both are BUILD_DEPENDS of each other, but apparently due to some other Python package being present in the build environment. I have 275 py38-* packages installed on my system, and I do not know how to identify the one that adds the dependency on py-packaging. And I have just rebuilt these 275 py39- packages on my system using portmaster and this did not fix the issue. I can build the packages with poudriere (and with my local version of portmaster that supports building in a clean chroot jail), but not directly on my system with lots of other packages installed. Regards, STefan --------------Gkjkc2SZVMQA1R09Ckl0TDfb-- --------------dtcG0rETpnTlBVq7I9RXCvhR Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmGrYxAFAwAAAAAACgkQR+u171r99UQQ vQgAvcHDJhGozzDpfl/tako1Ter+ZXg4cXyZzsugt+p0EjQ4p57c78oi1xuXTcxMxm7JIDZQ3SWZ dCHrUiqt+6e/S2+cXTGGbVi9ZeFH0wnJy0cX7QQvQP6HSZdbM1v+PlJA228YCZWgm2+mbSYXTyVm zYIozN/UNv3hTXf9n7niVG6kPnR3BU+p94msibqIL7NnYNVNy/H3HafZGg5HGzfIwtpKvfSMhrEW utwjg67XDvGiXQGac9aU/Bsc1en1iLpDUJcwDNhc7W6w6tEYoXkGIpgtFral9QHk44rS7u+c8wfd u8S9H40LprR79om8/3BW3JRHOTnu9TRdthe0F5MEQw== =WOM2 -----END PGP SIGNATURE----- --------------dtcG0rETpnTlBVq7I9RXCvhR--