[Debian-pan-maintainers] Bug#1029775: pyhst2: FTBFS with setuptools 66: Invalid version: '2020ca'

Andreas Beckmann anbe at debian.org
Fri Jan 27 14:37:13 GMT 2023


Source: pyhst2
Version: 2020c-6
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

pyhst2 FTBFS with setuptools 66 that was uploaded today:

...
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:240: python3.10 setup.py clean
/build/pyhst2-2020c/setup.py:59: DeprecationWarning:

  `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
  of the deprecation of `distutils` itself. It will be removed for
  Python >= 3.12. For older Python versions it will remain present.
  It is recommended to use `setuptools < 60.0` for those Python versions.
  For more details, see:
    https://numpy.org/devdocs/reference/distutils_status_migration.html


  from numpy.distutils.misc_util import get_numpy_include_dirs
/usr/lib/python3/dist-packages/setuptools/dist.py:548: UserWarning: The version specified ('2020ca') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  warnings.warn(
running clean
removing '/build/pyhst2-2020c/.pybuild/cpython3_3.10_pyhst2/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.10' does not exist -- can't clean it
...
byte-compiling /build/pyhst2-2020c/debian/python3-pyhst2-cuda/usr/lib/python3.10/dist-packages/PyHST2_2020c/Parameters_module.py to Parameters_module.cpython-310.pyc
running install_egg_info
Traceback (most recent call last):
  File "/build/pyhst2-2020c/setup.py", line 724, in <module>
    do_pyhst()
  File "/build/pyhst2-2020c/setup.py", line 698, in do_pyhst
    distrib = setup(name="PyHST2_"+version+post_fix,
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
    super().run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
    return orig.install.run(self)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 709, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in run_command
    super().run_command(command)
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py", line 31, in finalize_options
    ei_cmd = self.get_finalized_command("egg_info")
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 219, in finalize_options
    parsed_version = parse_version(self.egg_version)
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py", line 266, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '2020ca'
E: pybuild pybuild:388: install: plugin distutils failed with: exit code=1: /usr/bin/python3.10 setup.py install --root /build/pyhst2-2020c/debian/python3-pyhst2-cuda 
dh_auto_install: error: pybuild --install -i python{version} -p "3.10 3.11" --dest-dir /build/pyhst2-2020c/debian/python3-pyhst2-cuda returned exit code 13
make: *** [debian/rules:16: binary] Error 25
...


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyhst2_2020c-6.sid.build.gz
Type: application/gzip
Size: 38584 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20230127/f1616815/attachment-0001.gz>


More information about the Debian-pan-maintainers mailing list