I am working on python based flash tool for my platform. It depends on pyserial to work. How can I make sure pyserial gets installed while installing flash tool. Do I need to specify dependency in package.json? if yes then how? I could not find any documentation related to that.
Thanks!
This is a question a platform developer may answer, @valeros?
1 Like
If it’s a custom platform you can use the pythonPackages
option in your platform.json
like at the bottom of this platform.json
file.
2 Likes
perfect! Thank you @valeros. Just for information, I believe pyserial is used within PlatformIO itself. Do I really need to specify it explicitly in platform.json file?
Indeed, PySerial is used by PlatformIO, but it’s probably a good idea to explicitly specify this dependency in your platform.json
.