File: install.rst

package info (click to toggle)
python-ptrace 0.9.9-0.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: python: 10,167; ansic: 263; makefile: 164
file content (91 lines) | stat: -rw-r--r-- 2,061 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
+++++++++++++++++++++
Install python-ptrace
+++++++++++++++++++++

python-ptrace supports Python 3.6 and newer.

Linux packages
==============

* Debian: `python-ptrace Debian package <http://packages.qa.debian.org/p/python-ptrace.html>`_.
* Mandriva: `python-ptrace Mandriva package <http://sophie.zarb.org/rpmfind?search=python-ptrace&st=rpmname>`_
* OpenEmbedded: `python-ptrace recipe <http://git.openembedded.net/?p=org.openembedded.dev.git;a=tree;f=packages/python>`_
* Arch Linux: `python-ptrace Arch Linux package <http://aur.archlinux.org/packages.php?ID=19609>`_
* Gentoo: `dev-python/python-ptrace <http://packages.gentoo.org/package/dev-python/python-ptrace>`_

See also `python-ptrace on Python Package Index (PyPI) <https://pypi.python.org/pypi/python-ptrace>`_

Install from source
===================

Download tarball
----------------

Get the latest tarball at the `Python Package Index (PyPI)
<https://pypi.python.org/pypi/python-ptrace>`_.

Download development version
----------------------------

Download the development version using Git::

    git clone https://github.com/vstinner/python-ptrace.git

`Browse python-ptrace source code
<https://github.com/vstinner/python-ptrace>`_.


Option dependency
-----------------

* distorm disassembler (optional)
  http://www.ragestorm.net/distorm/

Installation
------------

Note: pip is strongly recommanded.

Type as root::

   python3 setup.py install

Or using sudo program::

   sudo python3 setup.py install


cptrace
=======

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

    python3 setup_cptrace.py install


Run tests
=========

Run tests with tox
------------------

To run all tests, just type::

    tox

The `tox project <https://testrun.org/tox/latest/>`_ creates a clean virtual
environment to run tests.


Run tests manually
------------------

Type::

    python3 runtests.py
    python3 test_doc.py

It's also possible to run a specific test::

    PYTHONPATH=$PWD python3 tests/test_strace.py