Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Deprecation warning when installing due to legacy setup.py bdist_wheel mechanism used #620

Open
@KyleKlink

Description

@KyleKlink

Describe the bug
This project is using the deprecated setup.py bdist_wheel mechanism for installation which is going to lose support in a future version of pip. A pyproject.toml file at the root of the project will remedy this issue.

To Reproduce
Steps to reproduce the behavior:

  1. Download source
  2. In terminal, pip install .
  3. Notice deprecation warning

Expected behavior
No deprecation warning

Logs or Screenshots

DEPRECATION: Building 'splunk-sdk' 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 'splunk-sdk'. Discussion can be found at https://github.com/pypa/pip/issues/6334

SDK (please complete the following information):

  • Version: latest
  • Language Runtime Version: Python 3.9
  • OS: Windows 10

Additional context
To remedy this a pyproject.toml file should be added at the root of the project with the following:

# pyproject.toml
[build-system]
# XXX: If your project needs other packages to build properly, add them to this list.
requires = ["setuptools >= 42.0.0"]
build-backend = "setuptools.build_meta"

More information can be found here: pypa/pip#6334

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions