-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make circup frozen library aware #227
Comments
This could install the stubs, and then pull frozen libs from there... |
Stubs are part of blinka ? The issue is that the actual source for the frozen libs "are" being installed, but that code is never referenced because frozen is before lib in sys.path. Either they should not be installed at all (because the frozen reference will be used), or they needed to be installed somewhere before frozen in sys.path. If the mpy files are being installed, that "should" have identical functionality to what is in frozen. .py files can be modified, changing the functionality. Or did you mean that the stubs would show which libraries are frozen? |
The stubs list the actual frozen libs. So for circup, it can find the matching stub, parse for the list and find if it's in there. It has the same information you find on the board page (they both get it from the same place). From that point it can give the opinion of installing in root or not at all. In some cases installing them could cause the board to crash since it takes more memory to load them. |
Feature request.
When using circup to install a library, it also installs all of the dependencies. That is usually the correct thing to do, but when those dependencies are frozen, it wastes space.
suggestion: add a flag, or make it the default, to exclude frozen dependencies during installs. They should be shown as already installed.
Variation. If installing with --py, frozen library dependencies might be desired.
suggestion: add a flag to install frozen dependencies when --py is used.
suggestion: when installing source (--py) for frozen libraries have a flag to override the target folder. Putting them in the root folder instead of lib would let them be found before the frozen version.
Putting them in a user specified folder would allow access control by manipulating sys.path. Something like '/debug', '/unfrozen', or '/thawed'.
Some extra documentation (circup --help) about interaction with frozen libraries could be a good idea.
to run): LIST REPRO STEPS BELOW
On discord in help-with-circuitpython
https://discord.com/channels/327254708534116352/537365702651150357/1248796673115816078
This arose when using
then trying to add debug prints to the imported dependence libraries. Some worked, some didn't because they were frozen, but there was no indication that was the problem.
The text was updated successfully, but these errors were encountered: