Skip to content

SetuptoolsDeprecationWarning: setup.py install is deprecated. #8705

@joakim-tjernlund

Description

@joakim-tjernlund

When building git sssd I get:

SetuptoolsDeprecationWarning: setup.py install is deprecated.       
!!                                                                                                                                     
                                                                                                                                       
        ********************************************************************************                                               
        Please avoid running ``setup.py`` directly.                                                                                    
        Instead, use pypa/build, pypa/installer or other                                                                               
        standards-based tools.                                                                                                         
                                                                                                                                       
        This deprecation is overdue, please update your project and remove deprecated                                                  
        calls to avoid build errors in the future.                                                                                     
                                                                                                                                       
        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.                                             
        ********************************************************************************  

eventually the build fails:

No GlobalOverrides context is active. Auto-creating one with SETUPTOOLS_SCM prefix for backwards compatibility. Consider using 'with GlobalOverrides.from_env("YOUR_TOOL"):' explicitly.
  return get_active_overrides().subprocess_timeout
[05/14/26 15:04:36] ERROR    fatal: detected dubious ownership in repository at '/var/tmp/portage/sys-auth/sssd-9999/work/sssd-9999-abi_x86_64.amd64' _git.py:32
                             To add an exception for this directory, call:                                                                                                                                                                                                                                    

The git ownership msg is a red herring, the real error is the subprocess_timeout I think

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions