Skip to contentSkip to conversation

INSTALL: provide examples to install python bindings

PATCH Superseded Pablo Neira Ayuso 2 participants 2 messages Aug 20, 2023 – Aug 21, 2023 netfilter

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 INSTALL: provide examples to install python bindings

Provide examples to install python bindings with legacy setup.py and pip with .toml file.

---
Florian noticed that make install does install python bindings anymore when running tests/py. Provide a bit more information on how to manually install python bindings in the INSTALL file.

 INSTALL | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
INSTALL +7 -2
index 53021e5aafc3..6b026e2c20c1 100644
@@ -86,8 +86,13 @@ Installation instructions for nftables
 
  CPython bindings are available for nftables under the py/ folder.
 
- A pyproject.toml config file and legacy setup.py script are provided to install
- it.
+ A legacy setup.py script are provided to install:
+
+	python setup.py install
+
+ Alternatively, a pyproject.toml config file is also provided install:
+
+	python -m pip install .
 
  Source code
  ===========
Signature · 1 line
2.30.2
#1 lore raw
Quoted 19 lines · Pablo Neira Ayuso

Provide examples to install python bindings with legacy setup.py and pip with .toml file.

---
Florian noticed that make install does install python bindings anymore when running tests/py. Provide a bit more information on how to manually install python bindings in the INSTALL file.

 INSTALL | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
INSTALL +0 -0
index 53021e5aafc3..6b026e2c20c1 100644
@@ -86,8 +86,13 @@ Installation instructions for nftables
 
  CPython bindings are available for nftables under the py/ folder.

INSTALL Installation instructions for nftables · line 95

Quoted 10 lines
INSTALL +7 -2
 
- A pyproject.toml config file and legacy setup.py script are provided to install
- it.
+ A legacy setup.py script are provided to install:
+
+	python setup.py install
+
+ Alternatively, a pyproject.toml config file is also provided install:
+
+	python -m pip install .

How about just:

CPython bindings are available for nftables under the py/ folder. They can be installed using pip:

python -m pip install py/

J.

Quoted 5 lines
INSTALL +0 -0
  Source code
  ===========
Signature · 1 line
2.30.2