HXLStandard/libhxl-python

Deprecation warning for "setup.py install" method

Closed this issue · 0 comments

I am seeing the following deprecation warning where libhxl is a dependency:

DEPRECATION: libhxl 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

libhxl is included in my projects by way of install_requires in the setup.cfg of hdx-python-country (which is used by just about every project I am working on).

It looks like setup.py install is being phased out. A while back I went through a major process of modernising the build system of the HDX Python libraries to use pyproject.toml, tox + tox-wheel, flakeheaven, setuptools_scm, GitHub Actions publish to pypi on release etc. so if helpful, you can look at eg. HDX Python Country.