From nobody Tue Mar 29 06:12:38 2022 X-Original-To: freebsd-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 C49EE1A39696 for ; Tue, 29 Mar 2022 06:39:14 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KSKfV0Rysz4kjR for ; Tue, 29 Mar 2022 06:39:13 +0000 (UTC) (envelope-from diizzy@FreeBSD.org) Received: from relay7-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::227]) by mslow1.mail.gandi.net (Postfix) with ESMTP id CE3E3C5E3B for ; Tue, 29 Mar 2022 06:12:54 +0000 (UTC) Received: (Authenticated sender: daniel.engberg@pyret.net) by mail.gandi.net (Postfix) with ESMTPA id 9B77220005 for ; Tue, 29 Mar 2022 06:12:38 +0000 (UTC) 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 Date: Tue, 29 Mar 2022 08:12:38 +0200 From: Daniel Engberg To: freebsd-python@freebsd.org Subject: Proper way to index __pycache__ (bytecode) files? Message-ID: X-Sender: diizzy@FreeBSD.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KSKfV0Rysz4kjR X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 217.70.178.240 is neither permitted nor denied by domain of diizzy@FreeBSD.org) smtp.mailfrom=diizzy@FreeBSD.org X-Spamd-Result: default: False [-1.53 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEFALL_USER(0.00)[diizzy]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-python@freebsd.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.70.178.240:from]; DMARC_NA(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.43)[-0.433]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; MLMMJ_DEST(0.00)[freebsd-python]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; SUBJECT_ENDS_QUESTION(1.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, I'd like to get some advice on how to add bytecode files when you cannot use (?) autoplist and/or distutils. I've been scanning the tree for a solution but I can't find one seems to work and Ports tree documentation is a bit sparse on the matter. Some ports use py3kplist but I my attempts to figure out what "a Python 2.x packaging list" actually looks like others ports just adds files to the temporary plist variable which seems a bit hacky. Currently I have this https://cgit.freebsd.org/ports/tree/textproc/py-libxml2/Makefile?id=25c952626c32a1830793a770b8f401a7d5370905 which works fine for all versions except for 3.7 due to https://cgit.freebsd.org/ports/tree/Mk/Uses/python.mk#n474 . I could define it for 3.7 in the port but I'm not sure that's a good idea so any advice would be appreciated. Best regards, Daniel