splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

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

Open KyleKlink opened this issue 1 year ago • 0 comments

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: https://github.com/pypa/pip/issues/6334

KyleKlink avatar Jun 25 '25 22:06 KyleKlink