-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
uasyncio on unix port #6109
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
Comments
What I did was get a copy of the github repository, and add a symlink:
This is on MacOS, but it should work fine on Linux as well. |
It might make sense to freeze uasyncio into the |
What dev build? To me it is strange that when I clone the repo and start building the firmware for different platforms, the esp32, esp8266 and pyboard all got the new uasyncio baked in but the unix port is still on V2 (or None iirc). |
FWIW, duplicate discussion here: https://forum.micropython.org/viewtopic.php?f=15&p=48162 |
That discussion was actually the reason why I opened this ticket. |
I agree - it's always hard to commit to a feature freeze, but a fresh release would be very welcome. Perfection is the enemy of done ... |
See #6131 |
Thanks @jimmo |
@kevinkk525 I agree. What's more, the dev build isn't working for me. On a fresh micropython clone on a Debian VM I built the dev variant with this result:
I also tried the coverage build, but that wouldn't compile:
|
That's because #6131 isnt merged yet, so no uasyncio in dev build yet. |
@kevinkk525 Thanks for that. Hopefully it will be in the standard build soon. |
Please get uasyncio v3 into the standard build! 🙏 I've put together a pretty long micropython + esp introduction (that's almost ready). One of the things that's bugging me is the uasyncio situation... I'd like to recommend to readers to just stick with MicroPython 1.13+ and uasyncio v3. But I also want to encourage readers to write tests that can run against a local version of micropython. But the current local builds doesn't include uasyncio, and i think people would likely end up with the pycoopy one through upip. In my opinion, getting uasyncio v3 into the standard build would go a long way on sorting out this whole uasyncio pain point! |
You may point anyone to building the dev build of the unix port. That one includes uasyncio v3. But I certainly agree, it's not good that the normal unix port is the only port that doesn't include the new uasyncio v3 by default. |
Should be there. But if not, you can always use the line below, if const is missing. from micropython import const or define const with a lambda function: const = lambda x: x Not as efficient as the real const, but at least the code works. |
True, but I have to modify library files with that directive in order for other 3rd party code to work. For example, os/__init__.py. I'm concerned there will be other surprises. |
If the ``command`` pin is None, that information will instead be sent as a ninth bit in the SPI transactions. Fix micropython#6109
Hi, I'll share how I'm currently building the standard Unix port with built-in The variants are defined within the directory So, if you would like to add freeze(
"$(MPY_DIR)/extmod",
(
"uasyncio/__init__.py",
"uasyncio/core.py",
"uasyncio/event.py",
"uasyncio/funcs.py",
"uasyncio/lock.py",
"uasyncio/stream.py",
"uasyncio/task.py",
),
opt=3,
) and then recompile ( Alternatively, you can create your own subfolder under I'm successfully using it with the Unix port in the master branch, version |
Was PR #6131 enough to fix this? Is there something blocking uasyncio from being included in the unix port? |
Oh, that's great! Is there a plan to include in the default version? So it works out of the box? |
As of c1530a0, |
Currently uasnycio is not compiled into the unix port but it does work if I copy the extmod/uasyncio directory into the library path of the unix port (and I think I had to change something in the build options but I can't remember, it's long ago and I'm currently setting up my PC again so can't test yet).
Would be good to have it available on the unix port too.
The text was updated successfully, but these errors were encountered: