Skip to content

get rid of distutils #5729

@ThomasWaldmann

Description

@ThomasWaldmann

some python 3.10 alpha version we use for testing now breaks all our testing (not only on 3.10, but also cancelling the other test runs) because of the distutils deprecation.

we use distutils:

  • in setup.py to subclass and extend the clean command (to remove generated files by cython)
  • for LooseVersion at 2 other places

The setuptools migration docs are rather unhelpful for this, subclassing is undocumented, could not find clean in setuptools and I also could not find a direct replacement for LooseVersion. Importing from setuptools._distutils runs into the same issues.

For borg 1.1.x there is also the requirement that we avoid adding new dependencies (while we still want to support python 3.10 for future 1.1.x releases), so using the packaging pypi package for some Version class is no solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions