From: Arturo Borrero Gonzalez <arturo@netfilter.org>
To: netfilter-devel <netfilter-devel@vger.kernel.org>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Subject: Re: [ANNOUNCE] nftables 1.0.8 release
Date: Mon, 17 Jul 2023 12:25:33 +0200 [thread overview]
Message-ID: <cc7b9429-540e-967d-1c50-7475b28a0973@netfilter.org> (raw)
In-Reply-To: <ZLEr3Eg59HyPUUSR@calendula>
On 7/14/23 13:05, Pablo Neira Ayuso wrote:
> Hi!
>
> The Netfilter project proudly presents:
>
> nftables 1.0.8
>
It seems the python package is a bit broken.
The problem can be reproduced using the tests/build/run-tests.sh script, which
will produce something like:
==== 8< ====
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66:
SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
for details.
********************************************************************************
!!
self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66:
EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer, pypa/build or
other standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
TEST FAILED:
/tmp/tmp.JeA0ZINB5h/nftables-1.0.8/_inst/local/lib/python3.11/dist-packages/
does NOT support .pth files
bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/tmp/tmp.JeA0ZINB5h/nftables-1.0.8/_inst/local/lib/python3.11/dist-packages/
and your PYTHONPATH environment variable currently contains:
''
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://setuptools.pypa.io/en/latest/deprecated/easy_install.html#custom-installation-locations
Please make the appropriate changes for your system and try again.
error: could not create 'nftables.egg-info': Permission denied
make[3]: *** [Makefile:462: install-exec-local] Error 1
make[2]: *** [Makefile:349: install-am] Error 2
make[1]: *** [Makefile:481: install-recursive] Error 1
make: *** [Makefile:697: distcheck] Error 1
==== 8< ====
I ignore what the fix is at the moment, but if if distutils is truly deprecated
then a revert of
https://git.netfilter.org/nftables/commit/?id=1acc2fd48c755a8931fa87b8d0560b750316059f
may not be the correct solution.
next prev parent reply other threads:[~2023-07-17 10:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 11:05 [ANNOUNCE] nftables 1.0.8 release Pablo Neira Ayuso
2023-07-17 10:25 ` Arturo Borrero Gonzalez [this message]
2023-07-17 10:28 ` Pablo Neira Ayuso
2023-07-20 15:33 ` Leah Neukirchen
2023-07-21 13:44 ` Pablo Neira Ayuso
2023-07-21 14:03 ` Leah Neukirchen
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=cc7b9429-540e-967d-1c50-7475b28a0973@netfilter.org \
--to=arturo@netfilter.org \
--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).