lang/python3* ports, __pycache__ included

Vlad K. vlad-fbsd at acheronmedia.com
Tue Dec 13 11:08:23 UTC 2016


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.


More information about the freebsd-python mailing list