Skip to content

Commit 8fb82a4

Browse files
authored
Updated docs for coverage c extension (python#594)
1 parent d69596d commit 8fb82a4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

coverage.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,15 @@ the encodings module). Do not worry if you can't get this to work or it doesn't
201201
make any sense; it's entirely optional and only important for a small number of
202202
modules.
203203

204-
If you still choose to try this, the first step is to build coverage.py's C
205-
extension code. Assuming that coverage.py's clone is at ``COVERAGEDIR`` and
206-
your clone of CPython is at ``CPYTHONDIR``, you execute the following in your
207-
coverage.py clone::
204+
If you still choose to try this, the first step is to make sure coverage.py's
205+
C extension is installed. You can check this with::
206+
207+
./python COVERAGEDIR --version
208+
209+
If it says 'without C extension', then you will need to build the C extension.
210+
Assuming that coverage.py's clone is at ``COVERAGEDIR`` and your clone of CPython
211+
is at ``CPYTHONDIR``, you can do this by executing the following in your coverage.py
212+
clone::
208213

209214
CPPFLAGS="-I CPYTHONDIR -I CPYTHONDIR/Include" CPYTHONDIR/python setup.py build_ext --inplace
210215

0 commit comments

Comments
 (0)