|
8 | 8 | Dependencies |
9 | 9 | ============ |
10 | 10 |
|
11 | | -In order to build and run pyfuse3 you need the following software: |
| 11 | +As usual, Python dependencies are specified in `pyproject.toml`. However, to build pyfuse3 you |
| 12 | +also need the following additional dependencies installed on your system: |
12 | 13 |
|
13 | | -* Linux kernel 3.9 or newer. |
14 | | -* Version 3.3.0 or newer of the libfuse_ library, including development |
| 14 | +* libfuse_, version 3.3.0 or newer, including development |
15 | 15 | headers (typically distributions provide them in a *libfuse3-devel* |
16 | 16 | or *libfuse3-dev* package). |
17 | | -* Python_ 3.8 or newer installed with development headers |
18 | | -* The Trio_ Python module, version 0.7 or newer. |
19 | | -* The `setuptools`_ Python module, version 1.0 or newer. |
20 | 17 | * the `pkg-config`_ tool |
21 | 18 | * the `attr`_ library |
22 | | -* A C compiler (only for building) |
23 | | - |
24 | | -To run the unit tests, you will need |
25 | | - |
26 | | -* The `py.test`_ Python module, version 3.3.0 or newer |
| 19 | +* Python development headers (for example, the *python3-dev* or |
| 20 | + *python3-devel* package on many Linux distributions) |
| 21 | +* A C compiler |
27 | 22 |
|
28 | 23 |
|
29 | 24 | Stable releases |
30 | 25 | =============== |
31 | 26 |
|
32 | | -To install a stable pyfuse3 release: |
33 | | - |
34 | | -1. Download and unpack the release tarball from https://pypi.python.org/pypi/pyfuse3/ |
35 | | -2. Run ``python3 setup.py build_ext --inplace`` to build the C extension |
36 | | -3. Run ``python3 -m pytest test/`` to run a self-test. If this fails, ask |
37 | | - for help on the `FUSE mailing list`_ or report a bug in the |
38 | | - `issue tracker <https://bitbucket.org/nikratio/python-pyfuse3/issues>`_. |
39 | | -4. To install system-wide for all users, run ``sudo python setup.py |
40 | | - install``. To install into :file:`~/.local`, run ``python3 |
41 | | - setup.py install --user``. |
| 27 | +To install a stable pyfuse3 release, ensure you have the non-Python dependencies |
| 28 | +installed and then use your favorite Python package manager to install pyfuse3 from |
| 29 | +PyPI (e.g. `pip install pyfuse3`). |
42 | 30 |
|
43 | 31 |
|
44 | | -Development Version |
45 | | -=================== |
| 32 | +Installing from Git / Developing pyfuse3 |
| 33 | +======================================== |
46 | 34 |
|
47 | | -If you have checked out the unstable development version, a bit more |
48 | | -effort is required. You need to also have Cython_ (0.29 or newer) and |
49 | | -Sphinx_ installed, and the necessary commands are:: |
| 35 | +Clone the pyfuse3_ repository and take a look at `developer_notes/setup.md`. |
50 | 36 |
|
51 | | - python3 setup.py build_cython |
52 | | - python3 setup.py build_ext --inplace |
53 | | - python3 -m pytest test/ |
54 | | - sphinx-build -b html rst doc/html |
55 | | - python3 setup.py install |
56 | 37 |
|
57 | 38 |
|
58 | | -.. _Cython: http://www.cython.org/ |
59 | | -.. _Sphinx: http://sphinx.pocoo.org/ |
60 | | -.. _Python: http://www.python.org/ |
61 | | -.. _Trio: https://github.com/python-trio/trio |
62 | | -.. _FUSE mailing list: https://lists.sourceforge.net/lists/listinfo/fuse-devel |
63 | | -.. _`py.test`: https://pypi.python.org/pypi/pytest/ |
64 | 39 | .. _libfuse: http://github.com/libfuse/libfuse |
65 | 40 | .. _attr: http://savannah.nongnu.org/projects/attr/ |
66 | 41 | .. _`pkg-config`: http://www.freedesktop.org/wiki/Software/pkg-config |
67 | | -.. _setuptools: https://pypi.python.org/pypi/setuptools |
| 42 | +.. _pyfuse3: https://github.com/libfuse/pyfuse3/ |
0 commit comments