Skip to content

setup.py CLI is deprecated #448

@Otto-AA

Description

@Otto-AA

Running python setup.py sdist bdist_wheel is deprecated, so I think we should refactor our build setup a bit.

@boxed Do you have any opinion on what we should change or use in the future?

I'm not very familiar with package builds/distribution, but could read up on the topic. Currently I would consider replacing setup.py+setup.cfg with a pyproject.toml and flit as a build tool.

/home/oaie/coding/python/mutmut/.venv/lib/python3.14/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.                                                                                              
!!                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                               
        ********************************************************************************                                                                                                                                                                       
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        By 2025-Oct-31, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions