File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,6 +394,25 @@ dependencies, so install these:
394394 $ pip install -U -r requirements/test.txt
395395 $ pip install -U -r requirements/default.txt
396396
397+ .. note ::
398+
399+ Install these into a virtualenv. On Debian and Ubuntu, installing them
400+ into the system Python can fail while building :pypi: `opentracing ` (pulled
401+ in by :file: `requirements/test.txt `) with::
402+
403+ AttributeError: install_layout
404+
405+ :pypi: `opentracing ` publishes no wheel, so pip builds it from the sdist
406+ through the legacy :file: `setup.py ` path using whatever setuptools is
407+ already installed -- and Debian's packaged ``python3-setuptools `` patches
408+ its ``install_lib `` command to read an ``install_layout `` option that the
409+ ``install `` command it runs against does not define.
410+
411+ A virtualenv gets an unpatched setuptools and builds it fine. If you must
412+ install into the system Python, either upgrade setuptools in place
413+ (``pip install -U setuptools ``) or build that one package in an isolated
414+ environment (``pip install --use-pep517 opentracing ``).
415+
397416After installing the dependencies required, you can now execute
398417the test suite by calling :pypi: `py.test <pytest `:
399418
Original file line number Diff line number Diff line change 1+ # 2.4.0 is the latest release and publishes no wheel, so pip builds it from
2+ # the sdist through the legacy setup.py path, using whatever setuptools is
3+ # already installed. Debian and Ubuntu's packaged python3-setuptools fails
4+ # that build with "AttributeError: install_layout"; installing into a
5+ # virtualenv avoids it. See "Running the test suite" in docs/contributing.rst.
16opentracing>=1.3.0,<=2.4.0
You can’t perform that action at this time.
0 commit comments