Simple workaround:

--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@
 override_dh_auto_clean:
 #      # Keep entry_points, we need it to drive setup.py
 #      -mv setuptools.egg-info/entry_points.txt .
-       dh_auto_clean
+       rm -rf $(CURDIR)/.pybuild/
 #      mkdir -p setuptools.egg-info
 #      mv entry_points.txt setuptools.egg-info

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dh-python in Ubuntu.
https://bugs.launchpad.net/bugs/2037205

Title:
  setuptools: FTBFS in mantic

Status in dh-python package in Ubuntu:
  New
Status in setuptools package in Ubuntu:
  New
Status in setuptools package in Debian:
  New

Bug description:
  As seen in the mantic test rebuild [1], setuptools 68.1.2-1 currently
  FTBFS:

  
  Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/setuptools/config/setupcfg.py", line 284, in 
__setitem__
      current_value = getattr(target_obj, option_name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'MinimalDistribution' object has no attribute 'entry_points'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/setup.py", line 92, in <module>
      dist = setuptools.setup(**setup_params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/<<PKGBUILDDIR>>/setuptools/__init__.py", line 106, in setup
      _install_setup_requires(attrs)
    File "/<<PKGBUILDDIR>>/setuptools/__init__.py", line 77, in 
_install_setup_requires
      dist.parse_config_files(ignore_option_errors=True)
    File "/<<PKGBUILDDIR>>/setuptools/dist.py", line 895, in parse_config_files
      setupcfg.parse_configuration(
    File "/<<PKGBUILDDIR>>/setuptools/config/setupcfg.py", line 177, in 
parse_configuration
      options.parse()
    File "/<<PKGBUILDDIR>>/setuptools/config/setupcfg.py", line 500, in parse
      section_parser_method(section_options)
    File "/<<PKGBUILDDIR>>/setuptools/config/setupcfg.py", line 727, in 
parse_section_entry_points
      self['entry_points'] = parsed
      ~~~~^^^^^^^^^^^^^^^^
    File "/<<PKGBUILDDIR>>/setuptools/config/setupcfg.py", line 286, in 
__setitem__
      raise KeyError(option_name)
  KeyError: 'entry_points'
  E: pybuild pybuild:395: clean: plugin distutils failed with: exit code=1: 
python3.11 setup.py clean 

  
  [1] 
https://people.canonical.com/~ginggs/ftbfs-report/test-rebuild-20230830-mantic-mantic.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/2037205/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to