OpenComputers II

OpenComputers II

27.1k Downloads

[Feature Request] Newer micropython

ToMe25 opened this issue ยท 4 comments

commented

The current version of micropython included in the sedna fork of buildroot seems to be 1.15.
This is unfortunately a version that does not yet have a full os implementation.

It would be really nice to have a version with more standard libs, like a full os implementation.
Later versions are also supposedly significantly faster, which would also be nice to have, I guess.

I wasn't sure in which repo to put this.
I considered buildroot, because it is the repo actually containing the relevant code.
Then I considered sedna, because it is the project for which the change actually is.
I ended up putting it here, because OC2 is likely the only project through which I will ever interact with this.

I am aware that this is not a trivial change, because it likely requires updating the entirety of buildroot.

It might be more reasonable to restructure the buildroot repo to be a wrapper around buildroot(either by using it as a subproject, or automatically downloading it with a script), however I have no idea if this is an approach that works with buildroot.

Anyways, I am aware that this is not something easy to do, I just wanted to write it down after the 10th time of thinking "I wish I had os.path here".

commented

Interesting, I thought newer versions of Micropython were supposed to contain a full os impl.
Thanks for linking the micropython-lib repo, I did not know about that.

commented

I bump micropython version to v1.19.1 in fnuecke/buildroot#3 PR.

commented

However, even if the version is updated, the full os implementation is missing.

I think you might be interested in micropython-lib/blob/master/python-stdlib/os.path/os/path.py.

commented

Tangental to this, is there a compatable version of micropython which includes regex?