Skip to content

Commit

Permalink
Allow passing compiler flags to tox runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry.dygalo committed Aug 12, 2019
1 parent 62dc084 commit e471e1e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@ Run ``pytest``:
The network blocking feature supports ``socket``-based transports and ``pycurl``.

Contributing
------------

To run the tests:

.. code:: bash
$ tox -p all
If you have troubles with installing ``pycurl`` with ``tox``, you could try to pass ``CPPFLAGS`` and ``LDFLAGS``
with the ``tox`` command:

.. code:: bash
$ CPPFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" tox -p all
Python support
--------------

Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ envlist = black,pylint,py{27,35,36,37,38,py,py3},no_pycurl,coverage-report
[testenv]
setenv =
PYCURL_SSL_LIBRARY = {env:PYCURL_SSL_LIBRARY:openssl}
passenv =
LDFLAGS
CPPFLAGS
deps =
coverage
pytest>=3.0
Expand Down

0 comments on commit e471e1e

Please sign in to comment.