diff options
| author | Jeremy Sowden <jeremy@azazel.net> | 2023-07-31 12:40:24 +0100 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-09-01 22:36:32 +0200 |
| commit | d684b6acf50e76d3628b75f272634ac4cd83bb38 (patch) | |
| tree | 04e9fdb6f1a844f4b741dfbf6bdf8ccf6cde1000 | |
| parent | 4d64a2599812149d08305da03f145c71df2695a9 (diff) | |
py: add pyproject.toml to support PEP-517-compatible build-systems
commit 8e603e0f7eec7c0000344a004228a30fbf0ece5c upstream.
This makes it possible to build and install the module without directly
invoking setup.py which has been deprecated.
Retain the setup.py script for backwards-compatibility.
Update INSTALL to mention the new config-file.
Link: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
| -rw-r--r-- | INSTALL | 3 | ||||
| -rw-r--r-- | py/Makefile.am | 2 | ||||
| -rw-r--r-- | py/pyproject.toml | 3 |
3 files changed, 6 insertions, 2 deletions
@@ -86,7 +86,8 @@ Installation instructions for nftables CPython bindings are available for nftables under the py/ folder. - setup.py is provided to install it. + A pyproject.toml config file and legacy setup.py script are provided to install + it. Source code =========== diff --git a/py/Makefile.am b/py/Makefile.am index 974539fd..76aa082f 100644 --- a/py/Makefile.am +++ b/py/Makefile.am @@ -1 +1 @@ -EXTRA_DIST = setup.cfg setup.py src +EXTRA_DIST = pyproject.toml setup.cfg setup.py src diff --git a/py/pyproject.toml b/py/pyproject.toml new file mode 100644 index 00000000..fed528d4 --- /dev/null +++ b/py/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" |
