Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conventions for MicroPython->CPython compatibility modules #919

Closed
pfalcon opened this issue Oct 19, 2014 · 1 comment
Closed

Conventions for MicroPython->CPython compatibility modules #919

pfalcon opened this issue Oct 19, 2014 · 1 comment
Labels

Comments

@pfalcon
Copy link
Contributor

pfalcon commented Oct 19, 2014

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:

  1. Host such compatibility modules in micropython-lib repo.
  2. To distinguish them from native uPy modules, have their dir names prefixed with "cpython-".
  3. 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".

@pfalcon pfalcon added the rfc label Oct 19, 2014
@pfalcon
Copy link
Contributor Author

pfalcon commented Jan 1, 2015

Moved to micropython/micropython-lib#18 after all.

@pfalcon pfalcon closed this as completed Jan 1, 2015
tannewt pushed a commit to tannewt/circuitpython that referenced this issue Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant