anki/README.development

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-07-05 11:38:54 +02:00
Running from source
--------------------
2016-07-05 11:38:54 +02:00
For non-developers who want to try this development code, the easiest way is
to use a binary package - please see:
2014-04-12 06:33:53 +02:00
2016-07-05 11:38:54 +02:00
https://anki.tenderapp.com/discussions/beta-testing
You are welcome to run Anki from source instead, but it is expected that you
can sort out all dependencies and issues by yourself - we are not able to
provide support for problems you encounter when running from source.
2019-12-18 05:43:40 +01:00
To start, make sure you have the following installed:
2016-07-05 11:38:54 +02:00
- Python 3.6+
2019-12-15 23:17:28 +01:00
- Qt 5.9.x or 5.11.x+, and a PyQT that supports it
2019-12-18 05:43:40 +01:00
- portaudio
2017-10-02 09:24:03 +02:00
- mpv
2016-07-05 11:38:54 +02:00
- lame
2019-12-18 05:43:40 +01:00
- npm
2016-07-05 11:38:54 +02:00
2019-12-18 05:43:40 +01:00
Now install the python dependencies:
2016-07-05 11:38:54 +02:00
$ pip3 install -r requirements.txt
2019-12-15 23:17:28 +01:00
$ pip3 install -r requirements.dev
2016-07-05 11:38:54 +02:00
2018-12-10 04:13:24 +01:00
If you're on a Linux distribution that packages a compatible Qt then you can
use the distro's packages. Make sure you install the development tools (eg
2018-07-12 08:09:14 +02:00
pyqt5-dev-tools) as well.
If you're on another platform or your distro has the wrong Qt version, you
can install PyQt with pip:
$ pip3 install PyQt5 PyQtWebEngine
2019-12-18 05:43:40 +01:00
And after that, install the js dependencies:
2019-12-18 05:43:40 +01:00
$ (cd ts && npm i)
2019-12-18 05:43:40 +01:00
Then to run the development version:
2014-04-12 06:33:53 +02:00
2019-12-18 05:43:40 +01:00
$ make run
If you get any errors please return to the top and check the requirements
again, and make sure you don't have another version of Anki installed.
If you want to use a language other than English, copy the locale/ folder
from a source tarball into the root of the repo.
2019-12-18 05:43:40 +01:00
To run the unit tests and checks:
2018-07-12 08:09:14 +02:00
2019-12-18 05:43:40 +01:00
$ make check
2018-07-12 08:09:14 +02:00
2016-08-16 07:07:29 +02:00
Before contributing code, please read README.contributing.
If you'd like to contribute translations, please see the translations section
of http://ankisrs.net/docs/manual.html#_contributing
2014-05-10 07:15:13 +02:00
2019-12-18 05:43:40 +01:00
Mac users
----------
2019-12-18 05:43:40 +01:00
You can use homebrew to install some dependencies:
2019-12-18 05:43:40 +01:00
$ brew install python mpv lame portaudio
2019-12-18 05:43:40 +01:00
Windows users
--------------
2019-12-18 05:43:40 +01:00
The build scripts have not been tested on Windows, and you'll find things
easiest if you build Anki using WSL.
https://docs.microsoft.com/en-us/windows/wsl/install-win10