Freezing URL-based libraries during firmware compilation #15759
-
Currently I clone the GitHub repos and use Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately, there is no built-in feature in MicroPython that allows you to directly install libraries from a URL or GitHub repository within the manifest.py file, as you can with package.json in Node.js. |
Beta Was this translation helpful? Give feedback.
-
If you are already use This is a quite common workflow , and is also used by MicroPython itself to pull in the dependencies needed for a build by running the See :
|
Beta Was this translation helpful? Give feedback.
If you are already use
git clone
to get those resources in , then I suggest you take a look atgit submodule
to automate this for you.You will need to get used to a few additional commands, and 'pin' specific versions, commits or branches of your dependencies , but once you do, it can work quite well.
This is a quite common workflow , and is also used by MicroPython itself to pull in the dependencies needed for a build by running the
make submodules
command as part of the build.See :
make submodules
command and thesubmodules:
section in the different makefiles.