Merge branch 'craftyguy-windows_edits'

This commit is contained in:
Florian Bruhin 2016-09-11 16:27:42 +02:00
commit 8a9365f24c
3 changed files with 16 additions and 1 deletions

View File

@ -331,6 +331,12 @@ https://docs.python.org/3/library/venv.html[virtual environment]:
$ tox -e mkvenv
----
On Windows, run tox with the 'mkvenv-win' option, however make sure that ONLY Python3 is in your PATH before running tox.
----
$ tox -e mkvenv-win
----
This installs all needed Python dependencies in a `.venv` subfolder. The
system-wide Qt5/PyQt5 installations are symlinked into the virtual environment.

View File

@ -173,8 +173,8 @@ Contributors, sorted by the number of commits in descending order:
* ZDarian
* Milan Svoboda
* John ShaggyTwoDope Jenkins
* Peter Vilim
* Clayton Craft
* Peter Vilim
* knaggita
* Oliver Caldwell
* Julian Weigt

View File

@ -50,6 +50,15 @@ usedevelop = true
deps =
-r{toxinidir}/requirements.txt
# This is used for Windows, since binary name is different
[testenv:mkvenv-win]
basepython = python.exe
commands = {envpython} scripts/link_pyqt.py --tox {envdir}
envdir = {toxinidir}/.venv
usedevelop = true
deps =
-r{toxinidir}/requirements.txt
# This is undocumented, but it's a common typo, so let's make it work
[testenv:mkenv]
basepython = {[testenv:mkvenv]basepython}