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

Fix clean Micropython build #838

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

MichaelBell
Copy link
Contributor

I had trouble with my local MicroPython build for ages until @Daft-Freak suggested wrapping the pio.h includes like this.. I feel this should be in the standard build to avoid others having the same pain!

@Daft-Freak
Copy link
Contributor

Hah, I'd entirely forgot about this.

Think this works around the fact that the QSTR preprocessing doesn't inherit the dependencies of the main build... by taking advantage of the code not needing to be entirely valid while that's happening. Should be fine unless there's a QSTR in a generated header for some reason.

(Then again, not a python person so possibly speaking complete nonsense 🤷)

@Gadgetoid Gadgetoid merged commit c045c40 into pimoroni:main Sep 11, 2023
@Gadgetoid
Copy link
Member

Ah I've been just charging on through this every single time 😆 thank you. I'm glad it finally annoyed someone enough to stop, step back and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants