Skip to content

Build requirements issue: PEP517 build from sdist fails #396

@radoering

Description

@radoering

rapidfuzz defines the following build-requires:

"setuptools>=42",
"scikit-build~=0.17.0",

However, it looks like scikit-build 0.17.* is not compatible with the latest setuptools so that a pep517 build of rapidfuzz fails with

  File "/tmp/pip-install-ow77o4fv/rapidfuzz_312413af3a934e5aa35448753ccd577e/_custom_build/backend.py", line 9, in <module>
    from skbuild.cmaker import get_cmake_version as _get_cmake_version
  File "/tmp/pip-build-env-q86uqxab/overlay/lib/python3.10/site-packages/skbuild/__init__.py", line 10, in <module>
    from .setuptools_wrap import setup
  File "/tmp/pip-build-env-q86uqxab/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 31, in <module>
    from .command import (
  File "/tmp/pip-build-env-q86uqxab/overlay/lib/python3.10/site-packages/skbuild/command/test.py", line 5, in <module>
    from setuptools.command.test import test as _test
ModuleNotFoundError: No module named 'setuptools.command.test'

The skbuild/command/test.py was removed in scikit-build 0.18 and setuptools.command.test was removed in setuptools 72. I think there are two options:

  • allow scikit-build 0.18
  • require setuptools<72

PS: We noticed this issue in the FreeBSD tests of Poetry, e.g. python-poetry/poetry#9427

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions