Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 765775

Summary: dev-python/threadpoolctl-2.1.0 fails with >=dev-python/setuptools-51.3.1
Product: Gentoo Linux Reporter: ZappeL <zappel>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: chutzpah, ionen, mgorny, sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 765838    
Attachments: build.log
emerge --info

Description ZappeL 2021-01-17 16:33:55 UTC
Created attachment 683377 [details]
build.log

Hi,

I'm facing a bug which makes it impossisble to emerge dev-python/threadpoolctl-2.1.0. Downgrading setuptools to "stable" (50.3.0) fixes this issue.

Partial log:
[...]
Traceback (most recent call last):                                                                                                                                                                  
  File "setup.py", line 3, in <module>                                                            
    main()                                                                                        
  File "/usr/lib/python3.8/site-packages/pyproject2setuppy/main.py", line 48, in main
    handler(data)                                                                                 
  File "/usr/lib/python3.8/site-packages/pyproject2setuppy/flit.py", line 46, in handle_flit
    setup(name=modname,                                                                           
  File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()                         
  File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)                                                                         
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command                                                                                                                             
    cmd_obj.run()                                                                                                                                                                                   
  File "/usr/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run                                                                                                            
    return orig.install.run(self)                                                                                                                                                                   
  File "/usr/lib/python3.8/distutils/command/install.py", line 557, in run               
    self.run_command(cmd_name)                                                                    
  File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command                                                                                                                              
    self.distribution.run_command(command)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()                       
  File "/usr/lib/python3.8/site-packages/setuptools/command/install_egg_info.py", line 34, in run
    self.run_command('egg_info')                                                                                                                                                                    
  File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command                                                                                                                              
    self.distribution.run_command(command)                                                                                                                                                          
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command                                                                                                                             
    cmd_obj.run()                                                                                 
  File "/usr/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 292, in run
    writer(self, ep.name, os.path.join(self.egg_info, ep.name))        
  File "/usr/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 628, in write_pkg_info
    metadata.write_pkg_info(cmd.egg_info)                                                                                                                                                             File "/usr/lib/python3.8/distutils/dist.py", line 1117, in write_pkg_info
    self.write_pkg_file(pkg_info)                                                                 
  File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 140, in write_pkg_file
    write_field('Summary', single_line(self.get_description()))    
  File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 124, in single_line
    raise ValueError("newlines not allowed")                                                      
ValueError: newlines not allowed                                                                  
 * ERROR: dev-python/threadpoolctl-2.1.0::gentoo failed (install phase):
 *   (no error message)
[...]


(Full build.log is attached)
Comment 1 Ionen Wolkens gentoo-dev 2021-01-17 17:02:17 UTC Comment hidden (obsolete)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 17:22:26 UTC
[08:44:25]  <@mgorny> setuptools:
[08:44:26]  <@mgorny> +* #1390: Newlines in metadata description/Summary now trigger a ValueError.
[08:44:30]  <@mgorny> i suspect breakage
Comment 3 ZappeL 2021-01-17 18:12:17 UTC
(In reply to Ionen Wolkens from comment #1)
> Hm, couldn't reproduce on my ~amd64 python3.9-only system, so (like being
> used here) I switched to dual python3_8 and 3_9 + rebuilt deps, and now
> running into the same thing with either targets.

yeah, sorry.. 
forget to mention that I'm using python3_8 and python3_9 in my "PYTHON_TARGETS"..
Comment 4 ZappeL 2021-01-17 18:13:00 UTC
Created attachment 683386 [details]
emerge --info

missing `emerge --info`
Comment 5 Ionen Wolkens gentoo-dev 2021-01-17 21:26:27 UTC
To avoid confusion, disregard my previous comment, overlooked that I upgraded at same time.