How To Install Leo Dependencies From a Git Clone

21 views
Skip to first unread message

Thomas Passin

unread,
Apr 7, 2023, 12:45:40 AM4/7/23
to leo-editor
I just installed Python 3.11.3.  I of course wanted to install Leo right away.  I normally run Leo from my clone.  With an ordinary requirements.txt file one can install the requirements using pip -r requirements.txt.  But Leo uses a tricky requirements.txt file that delegates everything to the installer, and pip -r doesn't work.  However, with a clone an installer isn't used.

The only way I know to get the dependencies with a new Python installation is to install Leo from PyPi.  Then I have an earlier version than the clone, one I really don't need to have.  Also, some of its dependencies may be at a lower version.  For example, the PyPi installer only installs PyQt5, but I'd rather have PyQt6, which presumably the next release will ask for.  (Yes, I did install PyQt6 by hand).

I'm sure there is a better way, but I don't know what it is.  Please clue me in!

Edward K. Ream

unread,
Apr 7, 2023, 5:14:35 AM4/7/23
to leo-e...@googlegroups.com
On Thu, Apr 6, 2023 at 11:45 PM Thomas Passin <tbp1...@gmail.com> wrote:
I just installed Python 3.11.3.  I of course wanted to install Leo right away.  I normally run Leo from my clone.  With an ordinary requirements.txt file one can install the requirements using pip -r requirements.txt.  But Leo uses a tricky requirements.txt file that delegates everything to the installer, and pip -r doesn't work. 

How about creating something like clone-requirements.txt?

Edward

Thomas Passin

unread,
Apr 7, 2023, 8:09:17 AM4/7/23
to leo-editor
Keeping it up to date would be the question.
Reply all
Reply to author
Forward
0 new messages