https://pantsbuild.org/ logo
#development
Title
# development
w

wide-midnight-78598

08/04/2022, 1:49 PM
Does anyone have pointers on where to look to add a Python interpreter? I've started a MicroPython project on the Raspberry Pi Pico - and I'm using pants for the formatting/linting, but would be nice to have that additional package step (though, it doesn't package to a pex)
h

hundreds-father-404

08/04/2022, 3:46 PM
What do you mean by Python interpreter? Like "how would I add MicroPython?"
w

wide-midnight-78598

08/04/2022, 5:50 PM
how would I add MicroPython
Yeah, that. I see we have versions of CPython and PyPy - so it would be nice to be able to add Micropython support for my source
h

hundreds-father-404

08/04/2022, 6:43 PM
I think the trick would be getting Pex to play nicely with it. Our Python backend is heavily, heavily centered around Pex. Otherwise, you would probably want to figure out a different mechanism to run tools like Black
w

wide-midnight-78598

08/04/2022, 6:46 PM
Well, so, regular python could run the linters/formatters, but micropython for any packaging/typechecking - as it's a subset of python
I'm still trying to figure out how it works, but if it's very pex centric, then I can start there