From: Jeremy Sowden <jeremy@azazel.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org, fw@strlen.de
Subject: Re: [PATCH nft] INSTALL: provide examples to install python bindings
Date: Mon, 21 Aug 2023 12:12:34 +0100 [thread overview]
Message-ID: <20230821111234.GA5268@azazel.net> (raw)
In-Reply-To: <20230820220720.49615-1-pablo@netfilter.org>
[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]
On 2023-08-21, at 00:07:20 +0200, Pablo Neira Ayuso wrote:
> 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 .
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.
> Source code
> ===========
> --
> 2.30.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-08-21 11:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-20 22:07 [PATCH nft] INSTALL: provide examples to install python bindings Pablo Neira Ayuso
2023-08-21 11:12 ` Jeremy Sowden [this message]
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=20230821111234.GA5268@azazel.net \
--to=jeremy@azazel.net \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).