Pip 25.3 depreciation warning

Hi, I recently tested my autoprint plugin for the new python versions requested by OctoPrint 1.12 and in course of this I came across the following depreciation warning:

DEPRECATION: Legacy editable install of OctoPrint-Autoprint==1.1.0 from file:///.../octoprint-automation/autoprint (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at Deprecate legacy `setup.py develop` mechanism for `pip install --editable` Β· Issue #11457 Β· pypa/pip Β· GitHub

When I tried to create a minimal pyproject.toml

[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

I get an error, that I am not using the same python environment and setup tools as octoprint upon executing:

octoprint dev plugin:install

But I am in the same environment. What could be wrong?

Obtaining file:///.../octoprint-automation/autoprint

  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Checking if build backend supports build_editable: started
  Checking if build backend supports build_editable: finished with status 'done'
  Getting requirements to build editable: started
  Getting requirements to build editable: finished with status 'error'
  error: subprocess-exited-with-error

  Γ— Getting requirements to build editable did not run successfully.
  β”‚ exit code: 255
  ╰─> [1 lines of output]

      Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Γ— Getting requirements to build editable did not run successfully.
β”‚ exit code: 255
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.