<geertu>
Is there an easy way to reinstall litex after an OS upgrade? I upgraded from Ubuntu 20.04 to 22.04 LTS, and now lxterm can no longer find the litex Python packages
<somlo>
geertu: maybe `python3 setup.py develop --user` in each of the distinct litex[-*] and pythondata-* repos will put the right symlinks back into your .local/<whatever> directory?
<somlo>
that is, if you're reluctant to just let `litex_setup.py` do its thing (which I haven't in a loooong time) :)
<geertu>
somlo: I did try messing with litex_setup.py, but I got lots of scary warnings and errors. Probably my copy is too old to work well with the new Python in 22.04
<geertu>
FWIW, my .local has almost no symlinks, and the few that are present are not related.
<geertu>
I have litex stuff under /usr/local/lib/python3.6/ and /usr/local/lib/python3.8/
<geertu>
Using "python3.6 /usr/local/bin/lxterm" instead of plain "lxterm
<geertu>
" does something, but fails later when trying to talk to the OrangeCrab. Doh
<geertu>
"sudo python3 setup.py develop" in the litex dir worked
<geertu>
However, download fails after a few seconds. Seems like the USB device disappears at random times.
<geertu>
Replugging the board fixed that. Back into business, booting 6.2-rc3...
<geertu>
somlo: thx!
<cr1901>
Huh, I think litex_setup.py has gotten much better over the years. I run it once per week
<somlo>
geertu: I have a bunch of *.egg-link files in $HOME/.local/lib/python3.XX/site-packages, and I'm sure they got there via `setup.py develop --user`, a long time ago
<somlo>
they match the "pythonic" folder structure of my various litex* git repositories
<somlo>
but this would all break if I upgraded my python version (.local/lib/python3.XX -> python3.YY), at which point I'd probably have to re-learn how to set things up :)
<somlo>
litex_setup.py used to 1. do a `git clone [--recursive]` on a list of repos, then 2. do a `setup.py ...` driven by a bunch of options on the command line
<somlo>
and probably still does -- haven't needed to touch it in a while :)