]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
INSTALL: provide examples to install python bindings
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 21 Aug 2023 20:03:54 +0000 (22:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 21 Aug 2023 20:04:26 +0000 (22:04 +0200)
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>
INSTALL

diff --git a/INSTALL b/INSTALL
index 53021e5aafc35f396eb7422387ff92eac5b6001c..5d45ec988c9f4c3118c6dee1c6e25138f11a8c37 100644 (file)
--- 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
  ===========