On Sun, 23 Oct 2022 15:38:40 +0200 Lucas Nussbaum <lu...@debian.org>
wrote:
> Source: azure-cosmos-python
> Version: 3.1.1-4
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20221023 ftbfs-bookworm
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> 
> Relevant part (hopefully):
> >  debian/rules clean
> > dh clean --with python3 --buildsystem=pybuild
> >    dh_auto_clean -O--buildsystem=pybuild
> > I: pybuild base:240: python3.10 setup.py clean 
> > /<<PKGBUILDDIR>>/setup.py:3: DeprecationWarning: The distutils
package is deprecated and slated for removal in Python 3.12. Use
setuptools or check PEP 632 for potential alternatives
> >   from distutils.core import setup
> > /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:18:
UserWarning: Distutils was imported before Setuptools, but importing
Setuptools also replaces the `distutils` module in `sys.modules`. This
may lead to undesirable behaviors or errors. To avoid these issues,
avoid using distutils directly, ensure that setuptools is installed in
the traditional way (e.g. not an editable install), and/or make sure
that setuptools is always imported before distutils.
> >   warnings.warn(
> > /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:33:
UserWarning: Setuptools is replacing distutils.
> >   warnings.warn("Setuptools is replacing distutils.")
> > /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown
distribution option: 'install_requires'
> >   warnings.warn(msg)
> > running clean
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/setup.py", line 6, in <module>
> >     setup(name='azure-cosmos',
> >   File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
> >     dist.run_commands()
> >   File "/usr/lib/python3.10/distutils/dist.py", line 966, in
run_commands
> >     self.run_command(cmd)
> >   File "/usr/lib/python3.10/distutils/dist.py", line 983, in
run_command
> >     cmd_obj = self.get_command_obj(command)
> >   File "/usr/lib/python3.10/distutils/dist.py", line 858, in
get_command_obj
> >     cmd_obj = self.command_obj[command] = klass(self)
> >   File "/usr/lib/python3/dist-packages/setuptools/__init__.py",
line 158, in __init__
> >     super().__init__(dist)
> >   File "/usr/lib/python3/dist-
packages/setuptools/_distutils/cmd.py", line 59, in __init__
> >     raise TypeError("dist must be a Distribution instance")
> > TypeError: dist must be a Distribution instance
> > E: pybuild pybuild:379: clean: plugin distutils failed with: exit
code=1: python3.10 setup.py clean 
> > dh_auto_clean: error: pybuild --clean -i python{version} -p 3.10
returned exit code 13
> > make: *** [debian/rules:6: clean] Error 25
> 
> 
> The full build log is available from:
>
http://qa-logs.debian.net/2022/10/23/azure-cosmos-python_3.1.1-4_unstable.log
> 
> All bugs filed during this archive rebuild are listed at:
>
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lu...@debian.org
> or:
>
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
> 
> A list of current common problems and possible solutions is available
at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to
contribute!
> 

This is just calling:

from distutils.core import setup
import setuptools

setup(name='azure-cosmos',
      version='3.1.1',
      description='Azure Cosmos Python SDK',
      author="Microsoft",
      author_email="askdo...@microsoft.com",
      maintainer="Microsoft",
      maintainer_email="askdo...@microsoft.com",
      url="https://github.com/Azure/azure-documentdb-python";,
      license='MIT',
      install_requires=['six >=1.6', 'requests>=2.10.0'],
      classifiers=[
        'License :: OSI Approved :: MIT License',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: Implementation :: CPython',
        'Topic :: Software Development :: Libraries :: Python Modules'
      ],
      packages=setuptools.find_packages(exclude=['test', 'test.*']))


I don't see how it can be anything else than a problem in distutils itself?

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to