| 1 |
Installation |
| 2 |
============ |
| 3 |
|
| 4 |
Python versions and implementations |
| 5 |
----------------------------------- |
| 6 |
|
| 7 |
pyudev supports CPython 3 and compatible versions of PyPy. |
| 8 |
|
| 9 |
|
| 10 |
Dependencies |
| 11 |
------------ |
| 12 |
|
| 13 |
pyudev needs libudev 151 and newer, earlier versions of libudev as found on |
| 14 |
dated Linux systems may work, but are not tested and not officially supported. |
| 15 |
It is written in pure Python based on :mod:`ctypes`, so no compilers or headers |
| 16 |
are required for installation. |
| 17 |
|
| 18 |
To use any of the toolkit integration modules. the corresponding toolkit must be |
| 19 |
available, but no toolkit is required during installation. |
| 20 |
|
| 21 |
|
| 22 |
Installation from Cheeseshop |
| 23 |
---------------------------- |
| 24 |
|
| 25 |
Install pyudev from the Cheeseshop_ with pip_:: |
| 26 |
|
| 27 |
pip install pyudev |
| 28 |
|
| 29 |
|
| 30 |
Installation from source code |
| 31 |
----------------------------- |
| 32 |
|
| 33 |
Close the public repository:: |
| 34 |
|
| 35 |
git clone https://github.com/lunaryorn/pyudev.git |
| 36 |
|
| 37 |
Or download `tarball <https://github.com/lunaryorn/pyudev/tarball/master>`_:: |
| 38 |
|
| 39 |
curl -OL https://github.com/lunaryorn/pyudev/tarball/master |
| 40 |
|
| 41 |
Then install pyudev from the source code tree:: |
| 42 |
|
| 43 |
python setup.py install |
| 44 |
|
| 45 |
|
| 46 |
.. _Cheeseshop: http://pypi.python.org/pypi/pyudev |
| 47 |
.. _pip: http://www.pip-installer.org/ |