From nobody Wed Jan 11 19:01:35 2023 X-Original-To: ports-bugs@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 4NscV73bJ6z2qsvR for ; Wed, 11 Jan 2023 19:01:35 +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 4NscV71QY5z3HVZ for ; Wed, 11 Jan 2023 19:01:35 +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=1673463695; 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; bh=CUwCGPEm3PYOoLaWOYuIOcy0MfOxHgv4FLneXkcBZcc=; b=plz7bpwBf2A6BCp1kxXKEJghXx13F6Shfw7ZfB0Aqg+COzTzzFtpysbJA41ypLVGrNm9HE G8GbNCFFgdaH2THu9lihKFoTSjh/FEaFf5QZI0rxceOXj0D6i3/I9AS5oe6DaEXCKz29xO DA0VUF20IqTnSMYM7QSGqPLmvrIDt8adLrkqQ20UkrMbQbCfLztsbnpwonq6lQwNGNB1Zf riSe31OgqJFzZ8cFRk9TDvtNIKbxn7sweJ71eVXYTGBMqKqRaj5t/d6yq2GOlBKtV+k9rx 0x+6/awK2EP0zqDv7gXSi8n65MPaw0nR9mKich6I/NZmtSAjPkbLnTwJbSQlcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673463695; a=rsa-sha256; cv=none; b=bhLqamOaAmBGuur55rkm1SfKV2l5ZURc6C5H3hcpd22U1ji68Q8Q14WloUDAxBp/pvD0el 7fmbZU7MkJmBdko9GWRLpUCrETWokDlrX9Sr2l59oAbSxBtlDuVuymf5Ad153KES4VTsq0 qGUSSJPdOhPU6QDR+oF7tH5RPYBwsiZsWYXjTDnMJ7xK8L7cZEuvhhxGy48c1O7gRxhBMd Gb7By6CWiNZUqibDXZKyg9js+KupZsLtc8+XAIMfNUCiTV+MdY5T9j0zTUtzmQlmG/Bgc4 15cEyDg+N0rTrT9+dke5vbu3hSo1Vy+PizKi7zQViyEr7V0x6Qz+gnqbkssb1A== 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 4NscV70WS9zySQ for ; Wed, 11 Jan 2023 19:01:35 +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 30BJ1Zf5043935 for ; Wed, 11 Jan 2023 19:01:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30BJ1ZIt043934 for ports-bugs@FreeBSD.org; Wed, 11 Jan 2023 19:01:35 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: ports-bugs@FreeBSD.org Subject: [Bug 268893] Mk/Uses/python.mk: need a way to specify wheel name != PORTNAME Date: Wed, 11 Jan 2023 19:01:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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 Some People X-Bugzilla-Who: amdmi3@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268893 Bug ID: 268893 Summary: Mk/Uses/python.mk: need a way to specify wheel name !=3D PORTNAME Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: amdmi3@FreeBSD.org CC: ports-bugs@FreeBSD.org I've decided to give pep517 support a try by converting one of my ports (devel/py-pytest-asyncio) which no longer provides setup.py. I've run into = an installation problem, as the wheel name (pytest_asyncio) appears to be different from the module/port name (which is pytest-asyncio, as mentioned = in setup.cfg), while the framework blindly uses PORTNAME. This happens: ``` =3D=3D=3D> Building for py39-pytest-asyncio-0.20.3 ... Successfully built pytest_asyncio-0.20.3-py3-none-any.whl ... =3D=3D=3D> Generating temporary packing list ... FileNotFoundError: [Errno 2] No such file or directory: '/work/usr/ports/devel/py-pytest-asyncio/work-py39/pytest-asyncio-0.20.3/di= st/pytest-asyncio-0.20.3-*.whl' ``` I'm not sure where the name mangling happens, but our framework [does](https://github.com/freebsd/freebsd-ports/blob/a61f6ab3b67be72b81ab5b= 0099f08fd1f95e605e/Mk/Uses/python.mk#L655) name mangling for egg names, so I assume a similar thing is required here. See attached a patch that converts py-pytest-asyncio to pep517 and a patch = that fixes the framework for it. The latter is likely incomplete (may need to use wheel name in more places and may need similar handling for the version). --=20 You are receiving this mail because: You are on the CC list for the bug.=