adafruit / circuitpython-build-tools

Build scripts for CircuitPython libraries and the bundle
MIT License
28 stars 17 forks source link

Include frozen library data to avoid large dependency bundles #85

Open makermelissa opened 2 years ago

makermelissa commented 2 years ago

One issue with the bundle builder is that frozen libraries are still included and we are blindly telling users to place all the libraries in their lib folder. Most of the time, this isn't an issue, but recently the MatrixPortal library and dependencies was starting to cause out of memory errors and I noticed there were several frozen libraries included.

Now the biggest challenge to this that I believe some of the boards (or at least specific builds for the boards) don't have all the frozen libraries such as the trinkets or some of the boards with large languages. So I'm not exactly sure what the best format of data would be so that bundles can end up being more tailored. Perhaps a simple include frozen libraries parameter would be enough and then maybe don't include those by default.

I'm putting the issue here, because the JSON data will likely need to be added here.