From 1a22afc0c9d7e510894295ff03bd0a544cd1bb75 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Fri, 26 Aug 2016 10:25:53 +0300 Subject: [PATCH] Ask tox to upgrade pip Works around the terrible mess that is the state of Python packaging: - latest virtualenv doesn't work with Python 3.5 on Windows (https://github.com/pypa/virtualenv/issues/796) - virtualenv-rewrite that I use instead works with Python 3.5 but bundles an outdated version of pip - old version of pip doesn't find the right binary wheels for lxml (because the ABI tag changed) and tries to compile, which fails --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index bc0a155..6ee6c42 100644 --- a/tox.ini +++ b/tox.ini @@ -18,10 +18,14 @@ commands = # Install ZEO because zodbbrowser depends on ZODB3 which depends on ZEO >= # 4.0.0dev which tells pip that prereleases are fine, which makes it go and # download ZEO 5.0.0a2, which is broken on windows, somehow. +# Upgrade pip because otherwise we can't find lxml wheels because the ABI tag +# format changed or something. deps = zope.testrunner persistent ZEO + pip +install_command = python -m pip install -U {opts} {packages} [testenv:py] commands =