Please complete the following information:
- OS: MacOSx
- Psycopg version: 2.9.10
- Python version: 3.12
- PostgreSQL version: 15
- pip version 25.1.1
The following warning is displayed on build:
DEPRECATION: Building 'psycopg2' 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 'psycopg2'. Discussion can be found at https://github.com/pypa/pip/issues/6334