pyx-project / pyx

Repository of PyX, a Python package for the creation of PostScript, PDF, and SVG files.
https://pyx-project.org/
GNU General Public License v2.0
109 stars 18 forks source link

BLD: future change of behaviour in pip #41

Closed neutrinoceros closed 1 year ago

neutrinoceros commented 1 year ago

Installing pyx from source within a fresh environment as

python -m pip install -U pip
python -m pip install pyx

yields

DEPRECATION: pyx is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
neutrinoceros commented 1 year ago

Publishing a wheel would also resolve the issue for dependees. I'm willing to help implementing either (or both) solutions.

joerg-lehmann commented 1 year ago

Thanks for reporting. We have now moved to a pyproject.toml (in commit 26c45767514413de4a21a443912a8a44b8682f82) for the project metadata. This seems to work as intended, however, we had problems with our build dependencies (pip did not recognize them as optional-dependencies in the pyproject.toml). As a temporary solutions these ones have been moved to dev_requirements.txt.