Support shipping precompiled layers #88
Labels
Affects: Python API
Affects the public Python API of the project
Affects: Spec Format
Affect the stack specification format
Category: Enhancement
New feature or request
Wheels typically omit pyc files because they can target multiple Python versions with a single wheel archive (due to the stable ABI, even wheels with compiled extension modules can do that).
This is less useful for venvstacks layers (especially Windows layers that end up with
bound_to_implementation
set totrue
), since they're coupled to a specific version of the underlying base runtime layer.This leads to the following enhancement request:
precompile
flag to layer definitions (defaulting totrue
)__pycache__
folders are kept during export and archiving__pycache__
folders are omitted and the layers are compiled during the post-installation step (the existing behaviour)The text was updated successfully, but these errors were encountered: