Search found 735 matches

by stijn
Tue Jan 25, 2022 7:41 am
Forum: Development of MicroPython
Topic: Understanding the qstr generation process
Replies: 6
Views: 17196

Re: Understanding the qstr generation process

I don't understand what you mean (I also don't know a lot about Make). The rules are such that OBJ depends on qstrdefs.generated.h, which depends on QSTR_DEFS_COLLECTED (among other things) which depends on qstr.split which depends on qstr.i.last. So the body of the qstr.i.last rule gets ran first, ...
by stijn
Mon Jan 24, 2022 8:05 am
Forum: Development of MicroPython
Topic: Understanding the qstr generation process
Replies: 6
Views: 17196

Re: Understanding the qstr generation process

makeqstrdefs.py is called with arguments including the compiler and flags (i.e. QSTR_GEN_CFLAGS), which makeqstrdefs.py uses to do the preprocessing by running the compiler with those flags (you can see that when running make V=1 btw)
by stijn
Sun Jan 23, 2022 12:00 pm
Forum: Development of MicroPython
Topic: Understanding the qstr generation process
Replies: 6
Views: 17196

Re: Understanding the qstr generation process

so the question is: how does building the qstrdefs work with a circular dependency like this? It's not circular during preprocessing which generates said header, because it's inclusion is guarded by #ifdef NO_QSTR see mkrules.mk (or equivalent genhdr.targets for msvc): # QSTR generation uses the sa...
by stijn
Wed Jan 19, 2022 8:52 am
Forum: General Discussion and Questions
Topic: Recommended CI Pipeline
Replies: 3
Views: 7726

Re: Recommended CI Pipeline

So to confirm the process in a CI pipeline for a project like mine would be Yes that's it. It's also exactly what MicroPython does on Github Actions (and previously Travis). However, there's no readily available STM32 emulator I think, so ci.sh doesn't run STM32 tests. In your case you'd build the ...
by stijn
Wed Jan 19, 2022 7:14 am
Forum: Development of MicroPython
Topic: Suppressing Build Warnings
Replies: 2
Views: 9986

Re: Suppressing Build Warnings

And it seems that these errors should be surpassed, however they are not. They are: -Wno-error means 'do not make this warning an error', not 'do not show this warning'. Is it possible to add to the MAKE command so that I can suppress all warnings that are not errors ?? Not that I know off but you ...
by stijn
Fri Jan 14, 2022 5:27 pm
Forum: General Discussion and Questions
Topic: Recommended CI Pipeline
Replies: 3
Views: 7726

Re: Recommended CI Pipeline

Not sure what you are asking exactly (depends on what your 'micropython project' is), but maybe this helps: in the MicroPython source code there's tools/ci.sh which does everything wrt building and testing. It's used by the github CI (see https://github.com/micropython/micropython/actions for output...
by stijn
Mon Jan 10, 2022 10:46 am
Forum: General Discussion and Questions
Topic: Missing attributes
Replies: 4
Views: 5399

Re: Missing attributes

def read(addr) should be def read(self, addr)
by stijn
Thu Jan 06, 2022 7:57 am
Forum: Development of MicroPython
Topic: LoadProhibited when calling a lambda function from C
Replies: 4
Views: 19039

Re: LoadProhibited when calling a lambda function from C

Sorry I don't know the ESP-IDF architecture so cannot pinpoint the exact reason (various possibilities include this is another thread, or this is an interrupt, or this runs even before MicroPython had been initialized, etc). The 'standard' workaround if allocation is not possible, is preallocating (...
by stijn
Thu Jan 06, 2022 7:45 am
Forum: General Discussion and Questions
Topic: micropython missing findall() function from the re() module
Replies: 2
Views: 4548

Re: micropython missing findall() function from the re() module

It's not implemented in the C code so also no flag to enable it.
Alternative would be mimicking findall in Python by repeatedly calling re.search on slices of the input string, advancing each slice after a match
by stijn
Thu Jan 06, 2022 7:22 am
Forum: General Discussion and Questions
Topic: unix port does not support PYTHONPATH?
Replies: 2
Views: 4303

Re: unix port does not support PYTHONPATH?

MICROPYPATH is the equivalent. Would make no sense to use PYTHONPATH because that would make it very awkward to use both Python and MicroPython.

I don't think any 'bootstrap script' or similar is implemented for PC ports.