summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-08-21 22:03:54 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-08-21 22:04:26 +0200
commit97c28c926096950f1646c99b85a31de309429a0c (patch)
treeb4fa62f4853ab1b1378f21a70fe8edc6a6664d03 /INSTALL
parent7076523e482110d59c4456f4a795581a2ca39c41 (diff)
INSTALL: provide examples to install python bindings
Provide a bit more details on how to install python bindings with legacy setup.py and pip with .toml file. Original text from Jeremy Sowden <jeremy@azazel.net>. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL12
1 files changed, 9 insertions, 3 deletions
diff --git a/INSTALL b/INSTALL
index 53021e5a..5d45ec98 100644
--- a/INSTALL
+++ b/INSTALL
@@ -84,10 +84,16 @@ Installation instructions for nftables
Python support
==============
- CPython bindings are available for nftables under the py/ folder.
+ CPython bindings are available for nftables under the py/ folder. They can be
+ installed using pip:
- A pyproject.toml config file and legacy setup.py script are provided to install
- it.
+ python -m pip install py/
+
+ A legacy setup.py script can also be used:
+
+ ( cd py && python setup.py install )
+
+ However, this method is deprecated.
Source code
===========