Open joshvillbrandt opened 9 years ago
That'd be really handy, would it be possible to leverage some already existing package manager e.g. pip
?
I suppose this is possible. I'm not sure that is a good solution though. If we had to chose one, however, I'd nominate npm since it does a better job of creating isolated environments out of the box.
I suppose such an implementation would be pretty straight forward:
npm install
package.json
file needs to be added with dependencies on ino-LIBNAME packagesnode_modules
folder in the path (I think this can be done with a command line option or similar with ino)Why not just arduino-
prefix instead of ino-
, who knows, Arduino might even adopt it in the (very) distanct future!
What other solutions exist? We could roll (yet another) package manager, I'm personally opposed to this given that there are already so many of them. I suppose we could fork one instead to target arduino to avoid polluting other repositories, and set up a separate repository.
Guys, please look in to PlatformIO. It can manage your external libraries. See documentation.
PlatformIO uses library.json manifest file. Here are a few examples.
Finally, it has Library Registry with Web interface where you can search for new libraries.
Looks interesting, thanks for the link
It seems like the Arduino community is still lacking a package manager for libraries. I suggest adding a command like
ino install _lib_
that is backed by a server somewhere. We can model the package description format and dependency handling off of Python's pip or Node's npm.