From nobody Fri Feb 16 19:00:04 2024 X-Original-To: ports@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 4Tc1TL5r4lz545ZL for ; Fri, 16 Feb 2024 19:00:06 +0000 (UTC) (envelope-from henrichhartzer@tuta.io) Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162]) (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 (2048 bits) client-digest SHA256) (Client CN "mail.tutanota.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc1TL3bJMz48T3; Fri, 16 Feb 2024 19:00:06 +0000 (UTC) (envelope-from henrichhartzer@tuta.io) Authentication-Results: mx1.freebsd.org; none Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w1.tutanota.de (Postfix) with ESMTP id 2FD91FBFC28; Fri, 16 Feb 2024 19:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1708110004; s=s1; d=tuta.io; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=fLIKG5sS2Ay9ue0Pw4Pytm1t6OL7dn5ke8kXPFVZ+Tg=; b=DacrnSRrgzC/X91PrfD1uH/ZVUsqIW/6JjBXTNN7u5xZ255x3Yj9RWe7YJcHge6n hmTRn4yJO8JKblPPCnB7s36abijBKsnhYg1sUsUy3okf/J3nrLq0uSforUOY1Xm+zpX mbuvVSohlBIFtM/5W7YbvC6E8GYjfPzJNVLtGKrVjVLwK4lOElbqq0rvJsOjyyTj0DJ 0srXbNAWObsyXzfQ5kvCwtCFXFqEH8+WDTm1e+3KBdZKvT0+JBfYP80QzTGv6dLK0VK FUQm6CmYcDVKWWpPH8WSWop354Slwk3uE0JnaHn7sWq8J/tIrby3+9L6AUuSe1HZjBu FaZUVdhFSQ== Date: Fri, 16 Feb 2024 20:00:04 +0100 (CET) From: henrichhartzer@tuta.io To: Jamie Landeg-Jones Cc: Yuri , Ports Message-ID: In-Reply-To: <202402161339.41GDdQX6005543@donotpassgo.dyslexicfish.net> References: <593106a3-b1c1-4aa6-95b9-e0d15ed2cd47@FreeBSD.org> <9ecdf1c4-97d1-4a18-bd77-9aff2ee2cc8d@freebsd.org> <07d2ff32-b297-4f7b-8aad-be04b89df0ca@FreeBSD.org> <202402161339.41GDdQX6005543@donotpassgo.dyslexicfish.net> Subject: Re: "py-" prefix shouldn't be needed for Python-based ports that are programs, not libraries List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Tc1TL3bJMz48T3 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24679, ipnet:81.3.0.0/18, country:DE] I agree with this. Some Python libraries are grey areas where they have helper programs and a library. Or a full on program and a library. But some make a very clear distinction and are not designed to be imported at all. Those would probably be fine to drop the py- prefix, and associate it with the latest workable Python version, or perhaps the one used most heavily (currently Python 3.9, I guess.) Alternatively, I have thought some about Python packages. It seems a wheel could be shipped. Some wheels have narrow parameters, like only Python 3.10 and a certain architecture. But many are highly generic, say Python 3.8-3.12. With these, the wheel could be shipped and pip installed, say with `python3.XX -m pip install foo.whl`. The package same package would work for any number of Python versions in this instance. Anyway, just an unrelated thought. -Henrich Feb 16, 2024, 13:39 by jamie@catflap.org: > I've often thought this. I assumed there where technical reasons. However, > it does seem weird that, for instance, borgbackup is py-borgbackup, when > it's a command line program called borgbackup. > > We don't have c-git, or sh-freebsd-snapshot or even with perl, > perl-get_iplayer! > > Even with pyton, it's not coherent - yt-dlp is python, yet doesn't have > the py prefix. > > Jamie >