Install python-ptrace

Install from source

Download tarball

Get the latest tarball at the Python Package Index (PyPI).

Download development version

Download the development version using Git:

git clone

Browse python-ptrace source code.

python-ptrace dependencies


Type as root:

python install

Or using sudo program:

sudo python install


For faster debug and to avoid ctypes, you can also install cptrace: Python binding of the ptrace() function written in C:

python install

Run tests

Run tests with tox

The tox project can be used to build a virtual environment run tests against different Python versions (Python 2 and Python 3).

To run all tests on Python 2 and Python 3, just type:


To only run tests on Python 2.7, type:

tox -e py2

Available environments:

  • py2: Python 2
  • py3: Python 3

Run tests manually



It’s also possible to run a specific test:

PYTHONPATH=$PWD python tests/