Skip to content

Commit d006fd2

Browse files
authored
Merge branch 'master' into claude/faust-issue-786-patch-pqf7d8
2 parents 8dc20de + 39ded3c commit d006fd2

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎docs/contributing.rst‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
397416
After installing the dependencies required, you can now execute
398417
the test suite by calling :pypi:`py.test <pytest`:
399418

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
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.
16
opentracing>=1.3.0,<=2.4.0

0 commit comments

Comments
 (0)