You can install platforms without PlatformIO having to register them.
i.e. platformio platform install https://github.com/siwiembedded/platform-siwigsm
Just as you can do the following in your platformio.ini to have the platform automatically installed if you’ve never built a project against it before.
Can you please tell me python version you’re running right now?
I do not understand the syntax error there but, If possible can you please add a space after colon or remove the type altogether and see if that fix the issue?
That’s what I thought. Well, that would probably involve a pretty-please and begging to @ivankravets
Good point… It’s still on 2.7.16… PlatformIO has been using Python 3 for a little while now (3.7.5, atm, it seems) , so I just just accidentally-on-purpose deleted my penv folder so it would upgrade the python environment… it’s still mulling that idea over, so may need application of a cattle prod.
Thanks for confirmation. should I be worried about someone running python 2? How can I test with python 2?
I do not understand the version scheme of default python package (ms-python.python) by Microsoft
No, not really, it’s only because I’ve been using this install of PlatformIO for a while, so it’s before PlatformIO jumped to Python 3. It’s not related to the ms-python, as PlatformIO uses it’s on python virtualenv to … insulate … itself from the rest of the OS, and also not muck up a pre-existing python setup (if any).
Edit: So cattle prod was applied, Python 3.7.5 didn’t want to auto-install willingly (ended up manually uninstalling it and letting PlatformIO try again). Now it compiles just fine. So it’s definitely something in the python 2 -> 3 transition.
You need to submit your development platform to the PlatformIO Registry. We plan to make it public soon. However, we can add your dev-platform manually to the registry from our side.
When do you plan to publish the first release?
Do you plan to cross-compile tool-siwiflasher for other systems? macOS, Linux?
Very soon, just finishing up some documentation and examples.
Siwiflasher is based on dll provided by mediatek. I do not have any open source alternative to flash GSM module. On linux it can work using wine but thats not really a solution for platformio. However I am thinking to understand the serial protocol and maybe able to provide a pyserial based flasher. But that might come later as reverse engineering protocol may take some time.
Hi @ivankravets, I have made the first release of platform-siwigsm today . Tested everything
I am preparing more examples will update on github as they are finished.
Hi @ivankravets, sorry to bump this topic again. Can you please add platform to PlatformIO registry?
Also I wanted to know how the release will work after platform is added. From what I understood, the tar.gz + sha1 sum has to be added to manifest.json to prepare a release. Is this an automated process in PlatformIO
registry?
Just for update, I have started my work on adding arduino framework support for siwigsm platform
For the Python 2 issue. Maybe just a quick note in your README on Github that says an “up to date version of PlatformIO based on Python 3.x is required” or something to that effect?
On OSX and “pip” in my path, it looks like the easiest way for users to check the version is:
[$]> which pip
/Users/jnr2820/.platformio/penv/bin/pip
[$]> pip --version
pip 20.1.1 from /Users/jnr2820/.platformio/penv/lib/python3.7/site-packages/pip (python 3.7)
Thank @jeremiahreddy Maybe mentioning minimum version of PlatformIO and python required should also be enough? so while installation itself things get verified by itself.
I am not sure if platform.json manifest file has such dependency field? There is engines in platform.json
Hi @ivankravets, i know you’re busy with the development of PlatformIO but please take a moment and see the modifications i have made as per your suggestions.
thanks!
Give us please some time and you will be able personally publish your dev-platform into the new Universal Package Registry for embedded development. We don’t maintain more legacy registry. Sorry.
No problem, Well actually It took me some time to understand even though you hinted some time back
I am not in hurry as of now since I am also working on getting Arduino framework ready I am sure PlatformIO team is working day in day out to get PIO IDE 2.0 with new features. Looking forward to it Good luck!