All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: jeremy@azazel.net, fw@strlen.de
Subject: [PATCH nft] INSTALL: provide examples to install python bindings
Date: Mon, 21 Aug 2023 00:07:20 +0200	[thread overview]
Message-ID: <20230820220720.49615-1-pablo@netfilter.org> (raw)

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

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
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(-)

diff --git a/INSTALL b/INSTALL
index 53021e5aafc3..6b026e2c20c1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -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
  ===========
-- 
2.30.2


             reply	other threads:[~2023-08-20 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-20 22:07 Pablo Neira Ayuso [this message]
2023-08-21 11:12 ` [PATCH nft] INSTALL: provide examples to install python bindings Jeremy Sowden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230820220720.49615-1-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=fw@strlen.de \
    --cc=jeremy@azazel.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.