Re: gpgmepy: Broken sdist build => "make install fails"

Paul Schwabauer via Gnupg-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
With the latest commit, it's now possible to build a wheel package using 
|make && python -m build|, and install it with |pip install dist/*.whl|.
Note that the Makefile still invokes |setup.py| in several places, which 
is deprecated and already causes failures for |make install| and |make 
sdist|.
I now have write access to the repository and have fixed some of the 
build issues, but contributions are very welcome; especially since I'm 
not deeply familiar with the Python ecosystem.

On 4/30/25 18:34, Genes Lists wrote:
> On Wed, 2025-04-30 at 16:45 +0200, Paul Schwabauer via Gnupg-devel
> wrote:
> On a slightly related note, make install is now failing as below.
> Primary error seems to be :
>   
>     "NotImplementedError: Support for egg-based install has been
> removed"
>
> python 3.13.3
> setuptools 80.0.0
> on archlinux :
>
> thanks
>
> gene
> -----------
> Errors are:
>
> /usr/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90:
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
>
> Traceback (most recent call last):
>    File "/mnt/lv_data/shared/src/abs/upstream/gnupg/gpgmepy-
> git/src/gpgmepy/build/setup.py", line 237, in <module>
>      setup(
>      ~~~~~^
>          cmdclass={'build': BuildExtFirstHack},
>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      ...<5 lines>...
>          ],
>          ^^
>      )
>      ^
>    File "/usr/lib/python3.13/site-packages/setuptools/__init__.py", line
> 117, in setup
>      return distutils.core.setup(**attrs)
>             ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
>    File "/usr/lib/python3.13/site-
> packages/setuptools/_distutils/core.py", line 186, in setup
>      return run_commands(dist)
>    File "/usr/lib/python3.13/site-
> packages/setuptools/_distutils/core.py", line 202, in run_commands
>      dist.run_commands()
>      ~~~~~~~~~~~~~~~~~^^
>    File "/usr/lib/python3.13/site-
> packages/setuptools/_distutils/dist.py", line 1002, in run_commands
>      self.run_command(cmd)
>      ~~~~~~~~~~~~~~~~^^^^^
>    File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line
> 1104, in run_command
>      super().run_command(command)
>      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
>    File "/usr/lib/python3.13/site-
> packages/setuptools/_distutils/dist.py", line 1021, in run_command
>      cmd_obj.run()
>      ~~~~~~~~~~~^^
>    File "/usr/lib/python3.13/site-
> packages/setuptools/command/install.py", line 105, in run
>      self.do_egg_install()
>      ~~~~~~~~~~~~~~~~~~~^^
>    File "/usr/lib/python3.13/site-
> packages/setuptools/command/install.py", line 143, in do_egg_install
>      raise NotImplementedError("Support for egg-based install has been
> removed.")
> NotImplementedError: Support for egg-based install has been removed.
> make[2]: *** [Makefile:986: install-exec-local] Error 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.