Re: [ANNOUNCE] nftables 1.0.8 release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arturo,

Thanks for the detailed report.

On Mon, Jul 17, 2023 at 12:25:33PM +0200, Arturo Borrero Gonzalez wrote:
> 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.

We can schedule a new release once this is sorted out.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux