Skip to content

Migrate from setup.py to pyproject.toml #411

@folmos-at-orange

Description

@folmos-at-orange

Description

Using a recent pip version, when installing the khiops the following message appears:

DEPRECATION: Building 'khiops' using the legacy setup.py bdist_wheel mechanism, which will be
removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement
is to use the standardized build interface by setting the --use-pep517 option, (possibly
combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of
'khiops'. Discussion can be found at pypa/pip#6334

So the setup.py will eventually be removed, and the only solution is to migrate the setup.py to a pyproject.toml. If we do nothing, the pip installation method will fail eventually.

Questions/Ideas

  • Note: A way to build with a pyproject.toml file is to use the build package. Once installed our current build method is equivalent to python -m build . sdist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority/0-HighTo do nowSize/DaysSome days of workStatus/DoneThe issue has been addressed and merged to the dev branch

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions