Package Details: micropython-lib 1.22.0-1

Git Clone URL: https://aur.archlinux.org/micropython.git (read-only, click to copy)
Package Base: micropython
Description: Python3 for microcontrollers, with stdlib. (UNIX version)
Upstream URL: http://micropython.org/
Licenses: MIT
Submitter: keenerd
Maintainer: bolleyboll
Last Packager: bolleyboll
Votes: 20
Popularity: 0.35
First Submitted: 2014-06-03 23:11 (UTC)
Last Updated: 2024-01-14 09:47 (UTC)

Latest Comments

1 2 3 Next › Last »

bolleyboll commented on 2024-01-14 09:44 (UTC)

@jimmo - Thanks for the pointers they seem genuinely helpful and I'll try to incorporate these. Seperating mlib and micropython, that I would need to test the changes once before I push these changes out.

@kseistrup - This seems intentional, however I'm not sure why this was put in place as this is something that was put in 5 years ago by Kyle.

For the time being I'm keeping the PKGBUILD as is and updating to 1.22.0, sometime in the next few weeks I'll push out another release with a newer PKGBUILD, I don't seem to have enough time to test everything due to high load at work.

kseistrup commented on 2023-12-29 10:04 (UTC)

This package (micropython-lib 1.21.0-1), when built, seems to contain only the LICENSE and nothing else. Is that intentional?

I do see some error during build, but that doesn't seem to deter makepkg from comtinuing:

==> Starting package_micropython-lib()...
==> ERROR: Skipping ./.github (no setup)
==> ERROR: Skipping ./micropython (no setup)
==> ERROR: Skipping ./python-ecosys (no setup)
==> ERROR: Skipping ./python-stdlib (no setup)
==> ERROR: Skipping ./tools (no setup)
==> ERROR: Skipping ./unix-ffi (no setup)

jimmo commented on 2023-10-06 05:46 (UTC)

We're in the process of releasing MicroPython v1.21.0 today, the new tarball should be available shortly. Some suggestions for updating the PKGBUILD:

  1. The -Wno-dangling-pointer is no longer required.
  2. Rather than modifying Makefile to remove /local, it would make more sense to pass PREFIX=/usr on the make commandline.
  3. I'm not sure what the second sed was for (with the git clean), as it doesn't match anything in the Makefile.
  4. MICROPY_PY_USSL was renamed to MICROPY_PY_SSL in v1.21.0. I'm not sure why the PKGBUILD is disabling ssl but enabling mbedtls though. Also mbedtls is now the default, so I think all three lines can be removed.
  5. I'm not sure what the issue with FFI is -- this works for me on Arch. But if you do want to disable it, this should be done by adding MICROPY_PY_FFI=0 to the make commandline instead. You also shouldn't need make deplibs because it's not using MICROPY_STANDALONE.
  6. The tests should not be non-deterministic. We run them as part of CI against a bunch of variants of the unix port. They should be safe to run here.
  7. As I mentioned in an earlier comment, I don't think micropython-lib should be part of this package. We added mip to the unix port by default, so the user can do micropython mip install <name> to install the packages they need. TBH I'm not even sure what's here would work at all.

Here's an updated PKGBUILD with the above changes: https://gist.github.com/jimmo/426d88ce30361aed3a540d9af08ecdb6

tee commented on 2023-09-20 05:29 (UTC)

See https://github.com/micropython/micropython/issues/11464#issuecomment-1543042388 for the dangling pointer workaround, use make CFLAGS_EXTRA="-Wno-dangling-pointer".

Radin commented on 2023-09-09 22:41 (UTC)

CC ../py/stackctrl.c ../py/stackctrl.c: In function ‘mp_stack_ctrl_init’: ../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=] 32 | MP_STATE_THREAD(stack_top) = (char *)&stack_dummy; ../py/stackctrl.c:31:18: note: ‘stack_dummy’ declared here 31 | volatile int stack_dummy; | ^~~~~~~~~~~ In file included from ../py/runtime.h:29, from ../py/stackctrl.c:27: ../py/mpstate.h:294:23: note: ‘mp_state_ctx’ declared here 294 | extern mp_state_ctx_t mp_state_ctx; | ^~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [../py/mkrules.mk:77: build/py/stackctrl.o] Error 1 ==> ERROR: A failure occurred in build(). Aborting... -> error making: micropython-exit status 4 -> Failed to install the following packages. Manual intervention is required: micropython - exit status 4 Does Not Build?

andreas_baumann commented on 2023-09-07 08:39 (UTC)

Doesn't build:

../py/stackctrl.c: In function ‘mp_stack_ctrl_init’:
../py/stackctrl.c:32:32: error: storing the address of local variable ‘stack_dummy’ in ‘mp_state_ctx.thread.stack_top’ [-Werror=dangling-pointer=]
   32 |     MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
../py/stackctrl.c:31:18: note: ‘stack_dummy’ declared here
   31 |     volatile int stack_dummy;
      |                  ^~~~~~~~~~~
In file included from ../py/runtime.h:29,
                 from ../py/stackctrl.c:27:
../py/mpstate.h:294:23: note: ‘mp_state_ctx’ declared here
  294 | extern mp_state_ctx_t mp_state_ctx;
      |                       ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../py/mkrules.mk:77: build/py/stackctrl.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

gauthier commented on 2023-06-11 13:41 (UTC)

Hi. The repo is two versions late. I've updated the PKGBUILD but I can't push it. I can help maintain the repo if you want Cheers

JohnRobson commented on 2023-05-21 02:27 (UTC)

File "/usr/lib/python3.11/functools.py", line 815, in singledispatch
    dispatch_cache = weakref.WeakKeyDictionary()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'weakref' has no attribute 'WeakKeyDictionary'
==> ERROR: A failure occurred in package_micropython-lib().
    Aborting...
 -> error making: micropython-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
micropython-lib - exit status 4

jimmo commented on 2022-08-22 01:55 (UTC) (edited on 2022-08-22 01:55 (UTC) by jimmo)

@pepijndevos The issue here is that this package is also including the micropython-lib which provides an extended version of the re module... which uses PCRE... which depends on FFI.

@keenerd (as the maintainer of micropython-lib) I'm not sure it makes sense to include micropython-lib by default in this package, especially if you're not enabling FFI. We're doing a bit of an overhaul of micropython-lib and packages in general (see https://github.com/micropython/micropython-lib/pull/506). If you want to discuss this in the context of the best way to build an AUR package please feel free to raise a bug there.

Note also that we have recently switched from axtls to mbedtls by default in the unix port.