From b7b9b7208d2348ed3f7f92dcd56b5d928dc9a75b Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 25 Oct 2016 13:55:32 +0200 Subject: [PATCH] Win Dev Environment instructions adds a rough outline of how to set up a dev env on windows --- CONTRIBUTING.asciidoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CONTRIBUTING.asciidoc b/CONTRIBUTING.asciidoc index e7ed06481..05ec6df67 100644 --- a/CONTRIBUTING.asciidoc +++ b/CONTRIBUTING.asciidoc @@ -526,6 +526,21 @@ generate code and subsequently overwrite part or all of it. Running with all will slow Valgrind down noticeably. ____ +Setting up a Windows Development Environment +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Install https://www.python.org/downloads/release/python-344/[Python 3.4] +* Install https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/[PyQt 5.5] +* Create a file at `C:\Windows\system32\python3.bat` with the following content: + `@C:\Python34\python %*` + This will make the Python 3.4 interpreter available as `python3`, which is used by various development scripts. +* Install git from the https://git-scm.com/download/win[git-scm downloads page] + Try not to enable `core.autocrlf`, since that will cause `flake8` to complain a lot. Use an editor that can deal with plain line feeds instead. +* Clone your favourite qutebrowser repository. +* To install tox, open an elevated cmd, enter your working directory and run `pip install -rmisc/requirements/requirements-tox.txt`. + +Note that the `flake8` tox env might not run due to encoding errors despite having LANG/LC_* set correctly. + Style conventions -----------------