adafruit / adafruit/circuitpython-build-tools

Include frozen library data to avoid large dependency bundles

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
35
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the bundle builder and the JSON data referenced in the issue, then inspect how frozen libraries and board-specific builds are currently selected. Determine a configuration format for including or excluding frozen libraries, and verify that generated bundles avoid redundant libraries without causing missing dependencies or memory failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.