From nobody Tue Jul 18 23:30:58 2023 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 4R5FZC6RqKz4mqcF for ; Tue, 18 Jul 2023 23:30:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R5FZC3w7dz3NSK for ; Tue, 18 Jul 2023 23:30:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689723059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VlH9rNZPWgJJ0/razieiuJ81JX94l664r0X/srSyRGI=; b=Sm2M9QrsdXpC4jzpKkPhma6c5UhX9I+TpTIaaN4oublOZfHf9HLC27lv+Jm60kyFg6OyUB XWdGLD4ZE4U/O9wY7xJtQ5mnu1KCX1GJS6ZI+2v0RDP72pEjXDY4vbahT0BROevzezCqLO TMrNRZMA6CdhQtjElBI94mWi3W3wjHUYwh/7tUN6Y9JgcaJPXGjPlswB9XEZXViEQ3bfgf 9TtdZU7ScY+nxl6ozO3q4uLKEmFciZhma3sKPPYyshhjFf97VyXZwhbQpZLp8k2ptqSiBN EMZYmw1NkKf+eNi8D7q/sIrk/o1jOoq/R5u2RDjjxux8uBAe7zKRIdml1irQng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689723059; a=rsa-sha256; cv=none; b=ZWIIBGwnYZKqCz+ri1be36TjOHJ+CzT0O18Cj22GJDOR3iqLC3R+a0m/iVJeX5qPH1bege qTT3kZxH7LO+VtxurMAnG8RvedXtwGKVZL8gvf8p2Ilf1dRGq5lLjgsNjYhbeNHpBtnuzk UoxhC5QQ/jwUCmnZ48DV3FMdhSwdc7PBeewRol6NLjmhch/Rthqe/bWcd72tXuZ093v/9B KCZ9VC+pMXdNprmH2yn3CnDcpb2fkMF4F6x5h+WCcH+8ACJHI9EPYPff7Kc4INNVqrxlCa wTQBmNCaHUve+s6RtJXcOT/xUyKwf0+PtaYnnBoyUdQJ8cFMWHAotCkFLjuAbw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R5FZC2pHjzPZL for ; Tue, 18 Jul 2023 23:30:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 36INUx9j062102 for ; Tue, 18 Jul 2023 23:30:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36INUx3P062101 for python@FreeBSD.org; Tue, 18 Jul 2023 23:30:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 270510] python.mk: remove setuptools from RUN_DEPENDS Date: Tue, 18 Jul 2023 23:30:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vishwin@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: exp-run? X-Bugzilla-Changed-Fields: dependson blocked Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270510 Charlie Li changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |272584 Blocks|272584 | --- Comment #4 from Charlie Li --- Quick glean from exp-run and some RUN_DEPENDS snooping reveal that setuptools_scm, hatch-vcs et al specify setuptools in RUN_DEPENDS. Technica= lly correct per upstream package metadata, but causes environment pollution with our build processes. Still need to check for any pkg_resources consumers bu= t I doubt any exist anymore. For documentation purposes (will add to wiki later): RUN_DEPENDS should never contain ${PY_SETUPTOOLS} unless the port in questi= on is a leaf port (ie no further consumers). Those ports that specify setuptoo= ls as a runtime dependency in the Python package metadata should have their consumers specify them instead. The ${PY_SETUPTOOLS} dependency line return= ed is only correct for the port it is used in. As different setuptools versions cannot exist concurrently in the same environment (chroot, jail, Python vir= tual environment, etc), it is essential to prevent environment pollution via RUN_DEPENDS, especially when multiple ports in a dependency chain differ between USE_PYTHON=3Dpep517 and USE_PYTHON=3Ddistutils. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272584 [Bug 272584] devel/py-attrs: Fix build with planned changes to RUN_DEPENDS = in Mk/Uses/python.mk --=20 You are receiving this mail because: You are on the CC list for the bug.=