Date: Tue, 13 Dec 2016 12:08:20 +0100 From: "Vlad K." <vlad-fbsd@acheronmedia.com> To: freebsd-python@freebsd.org Subject: Re: lang/python3* ports, __pycache__ included Message-ID: <f2f8f2765108cafb3f0c1b931e6314a1@acheronmedia.com> In-Reply-To: <fef69799-bee5-d836-70cf-d928707ccfdb@FreeBSD.org> References: <CACNAnaEueRdkEuuf9MmZwqqaz8HB6hSW14a_VmqZ9%2B8ub3235g@mail.gmail.com> <ema74d97cd-d111-4740-909d-419a4d12c8a6@hora> <CACNAnaF1=D-P0ZTbZP7Wt=BBoWwmDnwe=-mRmz%2Bga_H__zk4-g@mail.gmail.com> <fef69799-bee5-d836-70cf-d928707ccfdb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2f8f2765108cafb3f0c1b931e6314a1>