Skip to content

Commit

Permalink
Pass CFLAGS and LDFLAGS when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Sep 14, 2019
1 parent a16bdc5 commit 43bde28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43bde28

Please sign in to comment.