adafruit / Adafruit_CircuitPython_CircuitPlayground

CircuitPython library for Circuit Playground Express
MIT License
91 stars 71 forks source link

Add a subdirectory for CPX frozen modules #117

Closed Neradoc closed 2 years ago

Neradoc commented 2 years ago

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.