Add a subdirectory for CPX frozen modules #117
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a subdirectory in the repository with a copy of the library made using symbolic links excluding the CPB specific file.
This PR is required for the Circuitpython core PR that changes the frozen directory to the
frozen_cpx
subdirectory, allowing to only freeze in the CPX version of the library, for a 1 kB gain in space.I have tested it locally with the bundle release script and the library release script, and have seen no issue so far.
A possible issue would be the script finding the symbolic links and either spitting out an error (it expects only one main module per repository), or include them in the bundle, but it filters packages by prefix, and it expects the
adafruit_
prefix. As long as that doesn't change, we're fine. I think.