You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of this probably belongs to micropython-lib, but as we have more people here, I post RFC here.
So, as we go forward, uPy offers more and more features which are not compatible with CPython. But we surely want to remain good members of Python community, and provide a compatibility layer to run MicroPython-optimized programs on other Python implementations. We had beginnings of that for a long time - https://github.com/micropython/micropython/blob/master/examples/micropython.py , and this RFC is to set conventions and guidelines how to go forward with this.
My proposals:
Host such compatibility modules in micropython-lib repo.
To distinguish them from native uPy modules, have their dir names prefixed with "cpython-".
For PyPi, stick with existing convention of "micropython-" prefix, which them will be followed by "cpython-" infix.
As an example, CPython compatibility shim for MicroPython's "micropython" module will be possible to install from PyPi as "micropython-cpython-micropython".
The text was updated successfully, but these errors were encountered:
The implementation of this probably belongs to micropython-lib, but as we have more people here, I post RFC here.
So, as we go forward, uPy offers more and more features which are not compatible with CPython. But we surely want to remain good members of Python community, and provide a compatibility layer to run MicroPython-optimized programs on other Python implementations. We had beginnings of that for a long time - https://github.com/micropython/micropython/blob/master/examples/micropython.py , and this RFC is to set conventions and guidelines how to go forward with this.
My proposals:
As an example, CPython compatibility shim for MicroPython's "micropython" module will be possible to install from PyPi as "micropython-cpython-micropython".
The text was updated successfully, but these errors were encountered: