Skip to content

Deprecation warning due to missing pyproject.toml #115

@GeeTransit

Description

@GeeTransit

I'm following the installation instructions for Windows and there's a deprecation warning when installing from source:

> pip install wheel
Collecting wheel
  Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
Using cached wheel-0.45.1-py3-none-any.whl (72 kB)
Installing collected packages: wheel
Successfully installed wheel-0.45.1

> pip install git+https://github.com/TeamPyOgg/PyOgg
Collecting git+https://github.com/TeamPyOgg/PyOgg
  Cloning https://github.com/TeamPyOgg/PyOgg to c:\users\...\appdata\local\temp\pip-req-build-q8u6d553
  Running command git clone --filter=blob:none --quiet https://github.com/TeamPyOgg/PyOgg 'C:\Users\...\AppData\Local\Temp\pip-req-build-q8u6d553'
  Resolved https://github.com/TeamPyOgg/PyOgg to commit 4118fc40067eb475468726c6bccf1242abfc24fc
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: PyOgg
  DEPRECATION: Building 'PyOgg' 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 'PyOgg'. Discussion can be found at https://github.com/pypa/pip/issues/6334
  Building wheel for PyOgg (setup.py) ... done
  Created wheel for PyOgg: filename=PyOgg-0.7-py2.py3-none-win_amd64.whl size=2717903 sha256=40eca63a5f92223d2c91103dadbdeb45e4a199496c1f55373f784676e8ba5123
  Stored in directory: C:\Users\...\AppData\Local\Temp\pip-ephem-wheel-cache-yd1iu8jl\wheels\34\26\fc\651f99f095023cfdf0150758b86808b83703d0cc6b5714e43f
Successfully built PyOgg
Installing collected packages: PyOgg
Successfully installed PyOgg-0.7

The fix seems to be simple (see: pypa/pip#6334), just add a pyproject.toml with the following contents:

[build-system]
requires = ["setuptools >= 42.0.0"]
build-backend = "setuptools.build_meta"

I tested this change locally on Windows and the warning no longer appears when I uninstall and reinstall PyOgg. Didn't seem to break anything on Linux either (can't test macOS).

Also side note but the warning does not appear if I don't pip install wheel. Not sure why that's the case.

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