🌉 bridged from ⁂ https://wandering.shop/@xgranade, follow @ap.brid.gy to interact
But yeah, distro hacks are always frustrating.
But yeah, distro hacks are always frustrating.
```
uvx --with pip --managed-python platformio run
```
That lets me use esp-idf without having to install either platformio or idf.py!
```
uvx --with pip --managed-python platformio run
```
That lets me use esp-idf without having to install either platformio or idf.py!
```
$ uv run --with pip python
>>> import sys
>>> sys.path
['', '/home/cgranade/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python311.zip', '/home/cgranade/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11' […]
```
$ uv run --with pip python
>>> import sys
>>> sys.path
['', '/home/cgranade/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python311.zip', '/home/cgranade/.local/share/uv/python/cpython-3.11.10-linux-x86_64-gnu/lib/python3.11' […]
```
$ ~/.local/share/uv/tools/platformio/bin/python
Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python312.zip', '/usr/lib/python3.12' […]
```
$ ~/.local/share/uv/tools/platformio/bin/python
Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python312.zip', '/usr/lib/python3.12' […]
```
$ uv run --with pip python
Python 3.12.3 on linux
>>> import venv
>>> venv
<module 'venv' from '/usr/lib/python3.12/venv/__init__.py'>
>>> import json
>>> json
<module 'json' from '/usr/lib/python3.12/json/__init__.py'>
>>> import sys
>>> sys.executable
'/home/cgranade/ […]
```
$ uv run --with pip python
Python 3.12.3 on linux
>>> import venv
>>> venv
<module 'venv' from '/usr/lib/python3.12/venv/__init__.py'>
>>> import json
>>> json
<module 'json' from '/usr/lib/python3.12/json/__init__.py'>
>>> import sys
>>> sys.executable
'/home/cgranade/ […]
I really wish these vendors would just use PyPA-standard tooling for virtual […]
I really wish these vendors would just use PyPA-standard tooling for virtual […]
Ugh. I think I've gotten about all the […]
Ugh. I think I've gotten about all the […]
Was able to tell my Freewrite that this little ESP32 board is a USB host and to offer up my drafts to it as a mass storage device!
Was able to tell my Freewrite that this little ESP32 board is a USB host and to offer up my drafts to it as a mass storage device!