Lychee is an engine for MEI document management and conversion.
We recommend you use the nCoda Setup Program to install Lychee. The instructions below describe part of what that program does.
Lychee is copyrighted according to the terms of the GNU GPLv3+. A copy of the license is held in the file called "LICENSE."
The Lychee logo is modified from a file on the Wikimedia Commons, borrowed for use under the terms of the CC-BY-SA 3 licence.
Currently Lychee runs in Python 2 only, but should run in both CPython and PyPy. You can follow our progress on Python 3 support with T116 on the nCoda Phabricator installation.
Why only Python 2? Mercurial is integrated in Lychee (via the mercurial-hug
library) and
Mercurial only runs in Python 2. They have serious and legitimate problems with Python 3, so we are
working on alternative solutions.
These instructions produce a virtualenv with Lychee only. If you plan to use Lychee with the Fujian server, follow the instructions below in the "Install with Fujian" section. You can install Fujian at any time; if you're unsure, don't install it now.
- Set up a virtualenv and activate it.
virtualenv /path/to/virtualenv
source /path/to/virtualenv/bin/activate
- Change into the Lychee root directory.
- Update the default
pip
andsetuptools
, which otherwise may not be capable of installing the dependencies:pip install -U pip setuptools
. - Clone the ssh://vcs@goldman.ncodamusic.org/diffusion/HUG/mercurial-hug.git repository to a sibling directory of the "lychee" directory.
- Run
pip install -e .
from the "mercurial-hug" directory. - Run
pip install -e ".[devel]"
in the "lychee" directory to install the dependencies. - Then install Lychee by running
pip install -e .
in the Lychee directory. - Finally, run
py.test
in the Lychee directory to run the automated test suite, and make sure that nothing is broken before you even start developing!
These instructions will produce a virtualenv for use with Lychee and Fujian together, which may be used as a back-end for the Julius nCoda user interface.
- Set up a Lychee virtualenv by following the steps in the "Install for Development" section.
- Clone Fujian (not into the Lychee directory) from ssh://vcs@goldman.ncodamusic.org/diffusion/FJ/fujian.git. The top-level Lychee directory and the Fujian directory should be siblings (that is, they should be in the same directory).
- Run
pip install -e .
in thefujian
directory to install Fujian.
Start the monstrosity by activating the virtualenv and running python -m fujian
from any directory.
Don't.
If you get a segfault, delete the __pycache__
directories and try again.