I am going to reiterate here something I posted in another thread. If you want to use the git method (or indeed run from a downloaded unzipped archive), there is another way to set up your system besides virtual environments or pip install --editable. I do it this way because I have the standard python installation I started with, and then later I wanted to use git clones since I was doing some development on a plugin. Python uses an environmental variable just for purposes like this: PYTHONPATH.
Python will look for imports and library files in PYTHONPATH first. So I set it to point to the location of my Leo git clone. On my Windows machine, the command is: set PYTHONPATH=d:\tom\git\leo-editor (On Linux, of course,it would be more like PYTHONPATH=.... export $PYTHONPATH ) I find this way very satisfactory, because: 1. I get all the benefits of using a git clone; 2. I can go back to my standard install simply by not setting the variable; 3. If I want to work with a clone of some other Python library (such as rst2pdf, which I did a bit of work on), I just set PYTHONPATH to point there instead; 4. I get confused after a time when I set up more than a few virtual environments, because I forget what they were all for and what the state of their libraries and configuration is. This way I don't need those virtual environments. On Saturday, April 25, 2020 at 2:38:34 PM UTC-4, Viktor Ransmayr wrote: > > Hello Matt, > > Thanks for this explanation! > > Am Sa., 25. Apr. 2020 um 20:27 Uhr schrieb Matt Wilkie <map...@gmail.com > <javascript:>>: > >> Why should I prefer this method, if I don't get anything else than if I >>> would simple do a 'pip install leo'? - What am I missing? >>> >> >> - Upgrades are faster and easier, a simple `git pull` and you're >> done. Only the new and changed files are downloaded. With a pip upgrade a >> full download, uninstall, reinstall cycle is needed. >> - Switching between stable release and development versions or even >> downgrading is easy: `git checkout master`, `git >> >> -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/797b955d-a3eb-4817-9f12-79a565ab22ac%40googlegroups.com.