From owner-freebsd-python@freebsd.org Tue Dec 13 11:08:23 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E8F6C751DD for ; Tue, 13 Dec 2016 11:08:23 +0000 (UTC) (envelope-from vlad-fbsd@acheronmedia.com) Received: from mail.irealone.com (fawn.irealone.com [IPv6:2001:1af8:4010:a07b:10::2]) (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 38C7D188F for ; Tue, 13 Dec 2016 11:08:23 +0000 (UTC) (envelope-from vlad-fbsd@acheronmedia.com) Received: by mail.irealone.com (Postfix, from userid 1002) id 2F70560ED9; Tue, 13 Dec 2016 12:08:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=acheronmedia.com; s=mail; t=1481627300; bh=A7xpyE9dIcEVm/rvvmH5jaWBtLS205euOGrTca9ZCIE=; h=To:Subject:Date:From:In-Reply-To:References:From; b=2h9ypgMNcMHQUzvvLgqQTfKN2ZdY8mVnmIjoJDrr86KRNYLeJ9SGG9MFrhoZ0iqzq vx5HbGK7hr9Qhm+Nt07muH5DRsLB4CY2SgIct10P34l7bTthU5yyLLV2xRV2aIodOq 3aEoHPzzT4Zv6L0JoEJze1KqwLv961j0foUI/joY= To: freebsd-python@freebsd.org Subject: Re: lang/python3* ports, __pycache__ included X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 13 Dec 2016 12:08:20 +0100 From: "Vlad K." Organization: Acheron Media In-Reply-To: References: Message-ID: X-Sender: vlad-fbsd@acheronmedia.com User-Agent: Roundcube Webmail/1.1.7 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 11:08:23 -0000 On 2016-12-13 11:59, Kubilay Kocak wrote: > > Note that they will be re-created on import unless one overrides the > default for the interpreter to produce these optimization files. Depends. Those modules are installed in a root owned directory, and the bytecode cache will get created only if you run (import is enough as you say) those modules as root, because the cache is written in the module package directory. So pre-packaging the bytecode is a form of optimization, as the bytecode will be there when you run it as an unprivileged user. -- Vlad K.