From 43bde28b68346bcfa2b4cf3dffb060d995e00132 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Fri, 13 Sep 2019 14:09:55 -0700 Subject: [PATCH] Pass CFLAGS and LDFLAGS when running tests --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index b9a102a64..6e1d84b67 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,12 @@ skip_missing_interpreters = true [testenv] description = run the unit tests under {basepython} commands = python setup.py test -a "{posargs:-n auto}" +# compilation flags can be useful when prebuilt wheels cannot be used, e.g. +# PyPy 2 needs to compile the `cryptography` module. On macOS this can be done +# by passing the following flags: +# LDFLAGS="-L$(brew --prefix openssl@1.1)/lib" +# CFLAGS="-I$(brew --prefix openssl@1.1)/include" +passenv = LDFLAGS CFLAGS [testenv:fmt] description = run code formatting using black